]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Compile the functionparser target without -Wall -pedantic
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 2 Jan 2013 12:15:45 +0000 (12:15 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 2 Jan 2013 12:15:45 +0000 (12:15 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27891 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/bundled/functionparser/CMakeLists.txt
deal.II/cmake/setup_compiler_flags_gnu.cmake

index 795339893be09a1b676a732f8a947a7b98eb13ed..ed9c017b310595be8a21ff0b7bd661b43c83658a 100644 (file)
 ##
 #####
 
+#
+# Remove -Wall and -pedantic from CMAKE_CXX_FLAGS (in directory scope) to
+# aboid some annoying warnings...
+#
+STRIP_FLAG(CMAKE_CXX_FLAGS "-Wall")
+STRIP_FLAG(CMAKE_CXX_FLAGS "-pedantic")
+
 DEAL_II_ADD_LIBRARY(obj_functionparser OBJECT
   fparser.cc
   fpoptimizer.cc
index 4a7a402678b08f2605dc416a689f0f4ed46b590a..2a9f0285ad0ee9a9a89da066deec73529f3abc37 100644 (file)
@@ -81,7 +81,6 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   # (that are mainly triggered in third party headers so that we cannot
   # easily fix them...)
   #
-  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-c99-extensions")
   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")

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.