]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Revert "Set -Wno-newline-eof globally for gcc and clang"
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Nov 2012 09:42:39 +0000 (09:42 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Nov 2012 09:42:39 +0000 (09:42 +0000)
This was a mistake

This reverts commit 04c37f688a401740aceb4d9515b257d2fc3ee535.

git-svn-id: https://svn.dealii.org/branches/branch_cmake@27563 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags_gnu.cmake

index aeb6e7d4cefbf8abca9e5d69a90a295a214697dd..09e32679da964a7d46206e66b523dfce1fc31dee 100644 (file)
@@ -71,12 +71,6 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wswitch")
 #
 ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused-local-typedefs")
 
-#
-# Silence the -Wnewline-eof warning. We trigger this in various 3rd party
-# headers...
-#
-ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-newline-eof")
-
 
 IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   #
@@ -87,6 +81,7 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   #
   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")
 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.