]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Enable Trilinos warnings in recent versions.
authorDavid Wells <drwells@vt.edu>
Sat, 4 Apr 2015 16:55:18 +0000 (12:55 -0400)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Tue, 14 Apr 2015 10:50:18 +0000 (12:50 +0200)
At least for my local copy (11.12.1) GCC does not raise any warnings.

cmake/configure/configure_2_trilinos.cmake

index 1e251b6d7246a5180faedae15c4eaa21f7418417..c26a56489bb98de9cb0802e7530e50a36524e5ff 100644 (file)
@@ -193,11 +193,13 @@ MACRO(FEATURE_TRILINOS_CONFIGURE_EXTERNAL)
   SET(DEAL_II_EXPAND_TRILINOS_MPI_VECTOR "TrilinosWrappers::MPI::Vector")
 
   #
-  # Disable a bunch of warnings caused by Trilinos headers:
+  # Disable a bunch of warnings caused by Trilinos headers in older versions:
   #
-  ENABLE_IF_SUPPORTED(TRILINOS_CXX_FLAGS "-Wno-unused")
-  ENABLE_IF_SUPPORTED(TRILINOS_CXX_FLAGS "-Wno-extra")
-  ENABLE_IF_SUPPORTED(TRILINOS_CXX_FLAGS "-Wno-overloaded-virtual")
+  IF(TRILINOS_VERSION VERSION_LESS "11.12")
+    ENABLE_IF_SUPPORTED(TRILINOS_CXX_FLAGS "-Wno-unused")
+    ENABLE_IF_SUPPORTED(TRILINOS_CXX_FLAGS "-Wno-extra")
+    ENABLE_IF_SUPPORTED(TRILINOS_CXX_FLAGS "-Wno-overloaded-virtual")
+  ENDIF()
 ENDMACRO()
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.