From: bangerth Date: Sun, 21 Aug 2011 04:31:54 +0000 (+0000) Subject: Also disable clang warnings when in optimized mode, since some of them are apparently... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d84ff063c15b05c3bab8bf4dd0e99bb578e371c5;p=dealii-svn.git Also disable clang warnings when in optimized mode, since some of them are apparently run. git-svn-id: https://svn.dealii.org/trunk@24163 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index b9855f0fe2..48d654d5cd 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -640,7 +640,7 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl dnl be worked around and that are definitely not useful. Suppress dnl those too. CXXFLAGSG="$CXXFLAGS -DDEBUG -g -Wall -Wno-array-bounds -Wno-parentheses -Wno-delete-non-virtual-dtor -Wno-unneeded-internal-declaration -Wno-unused-function -Wno-unused-variable" - CXXFLAGSO="$CXXFLAGS -O2" + CXXFLAGSO="$CXXFLAGS -O2 -Wno-array-bounds -Wno-parentheses -Wno-delete-non-virtual-dtor -Wno-unneeded-internal-declaration -Wno-unused-function -Wno-unused-variable" CXXFLAGSPIC="-fPIC" LDFLAGSPIC="-fPIC" ;; diff --git a/deal.II/configure b/deal.II/configure index 42699cdac3..fea4c7977d 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -4675,8 +4675,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; clang*) - CXXFLAGSG="$CXXFLAGS -DDEBUG -g -Wall -Wno-array-bounds -Wno-parentheses -Wno-delete-non-virtual-dtor -Wno-unneeded-internal-declaration -Wno-unused-function -Wno-unused-variable" - CXXFLAGSO="$CXXFLAGS -O2" + CXXFLAGSG="$CXXFLAGS -DDEBUG -g -Wall -Wno-array-bounds -Wno-parentheses -Wno-delete-non-virtual-dtor -Wno-unneeded-internal-declaration -Wno-unused-function -Wno-unused-variable" + CXXFLAGSO="$CXXFLAGS -O2 -Wno-array-bounds -Wno-parentheses -Wno-delete-non-virtual-dtor -Wno-unneeded-internal-declaration -Wno-unused-function -Wno-unused-variable" CXXFLAGSPIC="-fPIC" LDFLAGSPIC="-fPIC" ;;