]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove non-C++11 mode compiler flag checks. 4106/head
authorDavid Wells <wellsd2@rpi.edu>
Fri, 31 Mar 2017 19:34:09 +0000 (15:34 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Fri, 31 Mar 2017 19:53:49 +0000 (15:53 -0400)
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).

cmake/setup_compiler_flags_gnu.cmake

index 59504616ccbc3bff4018a8bd1e865679a8b40098..96ab6ae1fec4306fbe5d4b333e1a3c0d3ed8cdad 100644 (file)
@@ -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.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.