]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Take out -W if advance check signals warning.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Sep 2001 08:56:25 +0000 (08:56 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Sep 2001 08:56:25 +0000 (08:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@4989 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in

index f2f7905f4b870461aaee703f5782dfe2acfac73e..6e77ededd7c8bef36f89a78f1c6cad8c28bf7c22 100644 (file)
@@ -258,7 +258,16 @@ if test "$GXX" = yes ; then
        ;;
   esac
 
+  dnl Some gcc compiler versions have a problem when using an unsigned count
+  dnl in the std::advance function. Unfortunately, this also happens 
+  dnl occasionally from within the standard library, so we can't prevent the
+  dnl warning messages. Since this is annoying, switch of the flag -W which
+  dnl causes this.
   DEAL_II_CHECK_ADVANCE_WARNING
+  if test "x$DEAL_II_ADVANCE_WARNING" = "xyes" ; then
+    CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-W//g;'`"
+  fi
+
 else
 
   if test "x$GXX_VERSION" = "xibm_xlc" ; then

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.