]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Cleanup Clang compiler flags
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Nov 2012 17:10:33 +0000 (17:10 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Nov 2012 17:10:33 +0000 (17:10 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27492 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags_gnu.cmake

index 3665e056b4b3ea38f26bc23b72c398faadced223..09e32679da964a7d46206e66b523dfce1fc31dee 100644 (file)
@@ -74,21 +74,16 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused-local-typedefs")
 
 IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   #
-  # Like many other compilers, clang produces warnings for array
-  # accesses out of bounds, even if they are in code that's dead
-  # for this dimension. Suppress this.
+  # *Boy*, clang seems to be the very definition of "pedantic" in
+  # "-pedantic" mode, so disable a bunch of harmless warnings
+  # (that are mainly triggered in third party headers so that we cannot
+  # easily fix them...)
   #
-  # There are a number of other warnings we get that can't easily
-  # be worked around and that are definitely not useful. Suppress
-  # those too.
-  #
-  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-array-bounds")
-  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-parentheses")
-  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-delete-non-virtual-dtor")
-  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unneeded-internal-declaration")
+  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-delete-non-virtual-dtor") # not harmless but needed for boost <1.50.0
+  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-long-long")
+  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-newline-eof")
   ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused-function")
   ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused-variable")
-  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-long-long")
 ENDIF()
 
 

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.