]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 12:30:04 +0000 (12:30 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 12:30:04 +0000 (12:30 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26504 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/setup_compiler_flags.cmake

index 494d51f9a67cbad099f8678fb1e46bf05d036539..94887aae165d746575bae0ce65f570c3803b84a2 100644 (file)
@@ -97,10 +97,14 @@ SET(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
 SET(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
 
 #
-# Strip some -W* flags and all CXX-only flags.
-# This is mainly to silence the build of contrib UMFPACK.
+# Strip flags not supported by a C target:
 #
-STRIP_FLAG(CMAKE_C_FLAGS "-Wall")
 STRIP_FLAG(CMAKE_C_FLAGS "-Wsynth")
-STRIP_FLAG(CMAKE_C_FLAGS "-Wsign-compare")
 STRIP_FLAG(CMAKE_C_FLAGS_RELEASE "-felide-constructors")
+
+#
+# Disable some warnings:
+#
+STRIP_FLAG(CMAKE_C_FLAGS "-Wall") # There is no other way to disable -Wunknown-pragma atm...
+STRIP_FLAG(CMAKE_C_FLAGS "-Wsign-compare")
+STRIP_FLAG(CMAKE_C_FLAGS "-Wwrite-strings")

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.