From f212fab4e45c935ddbb5c73499e862a16c43aa93 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Fri, 23 Nov 2018 18:33:52 +0100 Subject: [PATCH] Fix few warnings --- CMakeLists.txt | 2 +- src/mesh/GmshReader.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a9506171..967230a09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,7 @@ endif() if (${MPI_FOUND}) set(PASTIS_CXX_FLAGS "${PASTIS_CXX_FLAGS} ${MPI_CXX_COMPILER_FLAGS}") - include_directories(${MPI_CXX_INCLUDE_DIRS}) + include_directories(SYSTEM ${MPI_CXX_INCLUDE_DIRS}) elseif(PASTIS_ENABLE_MPI STREQUAL "ON") message(FATAL_ERROR "Could not find MPI library while requested") endif() diff --git a/src/mesh/GmshReader.hpp b/src/mesh/GmshReader.hpp index 20db0d321..dc1aa9914 100644 --- a/src/mesh/GmshReader.hpp +++ b/src/mesh/GmshReader.hpp @@ -164,7 +164,7 @@ private: int i; m_fin >> i; - return std::move(i); + return i; } double _getReal() @@ -172,7 +172,7 @@ private: double d; m_fin >> d; - return std::move(d); + return d; } /** -- GitLab