From: maier Date: Wed, 19 Sep 2012 12:30:04 +0000 (+0000) Subject: Bugfix X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ebef88def3d8fbd03bc6cffb1ca7083ed0f77da;p=dealii-svn.git Bugfix git-svn-id: https://svn.dealii.org/branches/branch_cmake@26504 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/cmake/setup_compiler_flags.cmake b/deal.II/contrib/cmake/setup_compiler_flags.cmake index 494d51f9a6..94887aae16 100644 --- a/deal.II/contrib/cmake/setup_compiler_flags.cmake +++ b/deal.II/contrib/cmake/setup_compiler_flags.cmake @@ -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")