From: David Wells Date: Fri, 31 Mar 2017 19:34:09 +0000 (-0400) Subject: Remove non-C++11 mode compiler flag checks. X-Git-Tag: v9.0.0-rc1~1747^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4106%2Fhead;p=dealii.git Remove non-C++11 mode compiler flag checks. These options no longer apply since we do not support compilation with either old versions of GCC (first check) or non-C++11 mode (second and third checks). --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 59504616cc..96ab6ae1fe 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -38,10 +38,7 @@ ENDIF() # # 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. @@ -66,12 +63,6 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wsign-compare") 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 @@ -105,11 +96,6 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang") 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.