]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove -Woverloaded-virtual from CXXFLAGS.g. We trigger this in
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Jun 2011 19:08:26 +0000 (19:08 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Jun 2011 19:08:26 +0000 (19:08 +0000)
DataPostprocessor and derived classes since we now have two functions with the
same name there but different signatures, but only one of the two has to be
overloaded.

git-svn-id: https://svn.dealii.org/trunk@23771 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 8bb4bfa4c0e6a2b13601c1adbd4e3774efb85c2a..6d58554dbbc9e6ab2067e7973f706fb55cf931f8 100644 (file)
@@ -389,7 +389,17 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
   dnl First the flags for gcc compilers
   if test "$GXX" = yes ; then
     CXXFLAGSO="$CXXFLAGSO -O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -Wuninitialized -felide-constructors -ftemplate-depth-128"
-    CXXFLAGSG="$CXXFLAGSG -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch -ftemplate-depth-128"
+    CXXFLAGSG="$CXXFLAGSG -DDEBUG -Wall -W -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch -ftemplate-depth-128"
+
+    dnl gcc 4.4 has an interesting problem in that it doesn't
+    dnl care for one of BOOST signals2's header files and produces
+    dnl dozens of pages of error messages of the form
+    dnl   warning: invoking macro BOOST_PP_CAT argument 1: empty macro arguments are undefined in ISO C90 and ISO C++98
+    dnl This can be avoided by not using -pedantic for this compiler.
+    dnl For all other versions, we use this flag, however.
+    if test $GXX_VERSION != gcc4.4 ; then
+      CXXFLAGS="$CXXFLAGS -pedantic"
+    fi
 
     dnl BOOST uses long long, so don't warn about this
     CXXFLAGSG="$CXXFLAGSG -Wno-long-long"

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.