From 3d0f9cdadd72b59c2579d7002aab97700bb45252 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 2 Jun 2011 19:08:26 +0000 Subject: [PATCH] Remove -Woverloaded-virtual from CXXFLAGS.g. We trigger this in 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 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 8bb4bfa4c0..6d58554dbb 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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" -- 2.39.5