if test x$have_gcc42 = xyes ; then? # These warnings break gcc 4.0.2 and work on gcc 4.2 # XXXX020 Use -fstack-protector. # XXXX020 See if any of these work with earlier versions. CFLAGS="$CFLAGS -Waddress -Wmissing-noreturn -Wnormalized=id -Woverride-init -Wstrict-overflow=1 --param ssp-buffer-size=1" # We used to use -Wstrict-overflow=5, but that breaks us heavily under 4.3. fi
Looks like we need to carefully evaluate which options to use depending on the compiler's version.
What's that "--param ssp-buffer-size=1" doing there? It's not a warning option, it's a compilation option, and that code is code to add extra warnings when building with --enable-gcc-warnings , right?