#
# Set -pedantic if the compiler supports it.
#
-IF(NOT (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
- CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.4"))
- ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-pedantic")
-ENDIF()
+ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-pedantic")
#
# Set the pic flag.
ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wswitch")
ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Woverloaded-virtual")
-#
-# Disable Wlong-long that will trigger a lot of warnings when compiling
-# with disabled C++11 support:
-#
-ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-long-long")
-
#
# Disable Wplacement-new that will trigger a lot of warnings
# in the BOOST function classes that we include via the
ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-parameter")
ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-variable")
- # without c++11 enabled, clang produces a ton of warnings in boost:
- ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-c99-extensions")
- ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-variadic-macros")
- ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-c++11-extensions")
-
#
# Disable a diagnostic that warns about potentially uninstantiated static
# members. This leads to a ton of false positives.