From 9efb7f65022c542602f0582be869b4f05821d7fd Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 4 Dec 2023 09:08:15 -0500 Subject: [PATCH] move -Wno-parentheses --- bundled/setup_bundled.cmake | 1 + cmake/modules/FindDEAL_II_KOKKOS.cmake | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bundled/setup_bundled.cmake b/bundled/setup_bundled.cmake index c9e9165c21..944ebd8d94 100644 --- a/bundled/setup_bundled.cmake +++ b/bundled/setup_bundled.cmake @@ -58,6 +58,7 @@ macro(feature_boost_configure_bundled) endif() enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-unused-local-typedefs") + enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-parentheses") list(APPEND DEAL_II_BUNDLED_INCLUDE_DIRS ${BOOST_FOLDER}/include) endmacro() diff --git a/cmake/modules/FindDEAL_II_KOKKOS.cmake b/cmake/modules/FindDEAL_II_KOKKOS.cmake index d41b590338..e39e93ea26 100644 --- a/cmake/modules/FindDEAL_II_KOKKOS.cmake +++ b/cmake/modules/FindDEAL_II_KOKKOS.cmake @@ -66,9 +66,6 @@ else() enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=177") # warning #284-D: NULL reference is not allowed enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=284") - # extra parentheses: - enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-parentheses") - endif() endif() -- 2.39.5