Skip to content
Snippets Groups Projects
Commit 927c225b authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/eigen_warnings' into 'master'

removed several warnings, by including Eigen as a system library

See merge request spraetor/dune-dec!13
parents eacb3756 1ff9afe2
Branches master
No related tags found
No related merge requests found
...@@ -103,6 +103,6 @@ endif(EIGEN3_INCLUDE_DIR) ...@@ -103,6 +103,6 @@ endif(EIGEN3_INCLUDE_DIR)
if(EIGEN3_FOUND) if(EIGEN3_FOUND)
dune_register_package_flags( dune_register_package_flags(
COMPILE_DEFINITIONS "ENABLE_EIGEN3=1" "DEC_HAS_EIGEN=1" COMPILE_DEFINITIONS "ENABLE_EIGEN3=1" "DEC_HAS_EIGEN=1"
INCLUDE_DIRS "${EIGEN3_INCLUDE_DIR}") )
include_directories(SYSTEM "${EIGEN3_INCLUDE_DIR}")
endif() endif()
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
#include <dune/dec/common/Output.hpp> #include <dune/dec/common/Output.hpp>
template <class... Args>
void inline _ignore_(Args&&...) {}
namespace Dec { namespace filesystem { namespace Dec { namespace filesystem {
std::string path::string() const std::string path::string() const
...@@ -120,7 +123,7 @@ bool path::is_directory() const ...@@ -120,7 +123,7 @@ bool path::is_directory() const
path current_path() path current_path()
{ {
char cwd_[FILENAME_MAX]; char cwd_[FILENAME_MAX];
GET_CURRENT_DIR(cwd_, sizeof(cwd_)); _ignore_(GET_CURRENT_DIR(cwd_, sizeof(cwd_)));
std::string cwd(cwd_); std::string cwd(cwd_);
return { trim(cwd) }; return { trim(cwd) };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment