diff --git a/bundled/setup_bundled.cmake b/bundled/setup_bundled.cmake index c9e9165c219d..944ebd8d94ae 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 d41b59033822..e39e93ea262d 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()