]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: set -Wno-unused-parameter in release mode 17524/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 14 Aug 2024 17:32:49 +0000 (12:32 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 14 Aug 2024 17:32:49 +0000 (12:32 -0500)
cmake/setup_compiler_flags_gnu.cmake

index 321dbfd314a18996cffa8d966130915a09fafd46..a352c9839295f0dd42855a5635667ee0125b04cf 100644 (file)
@@ -169,11 +169,13 @@ if (CMAKE_BUILD_TYPE MATCHES "Release")
   list(APPEND DEAL_II_DEFINITIONS_RELEASE "NDEBUG")
 
   #
-  # 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.
+  # There are many places in the library where we
+  #  - create a new typedef and then only use it in an Assert.
+  #  - use a function parameter only in an Assert.
+  # Thus disable these two warnings in release mode.
   #
   enable_if_supported(DEAL_II_CXX_FLAGS_RELEASE "-Wno-unused-local-typedefs")
+  enable_if_supported(DEAL_II_CXX_FLAGS_RELEASE "-Wno-unused-parameter")
 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.