]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence unused typedef warnings in release mode. 3721/head
authorDavid Wells <wellsd2@rpi.edu>
Mon, 2 Jan 2017 17:54:51 +0000 (12:54 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 2 Jan 2017 18:06:00 +0000 (13:06 -0500)
There are many places in the library where we use a typedef in just
debug mode, so disable the warning in release mode.

cmake/setup_compiler_flags_gnu.cmake

index 461c8107eea1af31fc721e854462f99ed68a12f8..0237d092ac6d76eff1cb20aa98c0553b28151aa6 100644 (file)
@@ -158,6 +158,13 @@ IF (CMAKE_BUILD_TYPE MATCHES "Release")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-loops")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-fstrict-aliasing")
+
+  #
+  # There are many places in the library where we create a new typedef and then
+  # immediately use it in an Assert. Hence, only ignore unused typedefs in Release
+  # mode.
+  #
+  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-Wno-unused-local-typedefs")
 ENDIF()
 
 

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.