From: Akim Demaille Date: Fri, 8 Jun 2012 07:02:09 +0000 (+0200) Subject: tests: remove all the -On flags. X-Git-Tag: v2.6~82 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/02287ec65002d4967927ba3cf22f6fdc634c4291?ds=sidebyside tests: remove all the -On flags. * tests/atlocal.in: Here. Reported by Gilles Espinasse. --- diff --git a/tests/atlocal.in b/tests/atlocal.in index 72a9bf75..7302209f 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -29,9 +29,11 @@ CPPFLAGS="-I$abs_top_builddir/lib @CPPFLAGS@" # Is the compiler GCC? GCC='@GCC@' -# We want no optimization. - O0CFLAGS=`echo '@CFLAGS@' | sed 's/-O[0-9] *//'` -O0CXXFLAGS=`echo '@CXXFLAGS@' | sed 's/-O[0-9] *//'` +# We want no optimization, as they uncover warnings (therefore, +# failures) about uninitialized variables in the test suite. FIXME: +# fix the warnings, not the flags. + O0CFLAGS=`echo '@CFLAGS@' | sed 's/-O[0-9s] *//g'` +O0CXXFLAGS=`echo '@CXXFLAGS@' | sed 's/-O[0-9s] *//g'` # Sometimes a test group needs to ignore gcc warnings, so it locally # sets CFLAGS to this.