From: Matthias Maier Date: Wed, 14 Aug 2024 17:32:49 +0000 (-0500) Subject: CMake: set -Wno-unused-parameter in release mode X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa7cb880c7455aaacca1ecbfade57c1d3d4ceb20;p=dealii.git CMake: set -Wno-unused-parameter in release mode --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 321dbfd314..a352c98392 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -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()