# HG changeset patch # User Richard Laager # Date 1134109281 0 # Node ID 3ac0000247e91aae7bc29d97104c6eb7ba1ccde7 # Parent 92df64b6985b1db544e6c2c5672d5023cc785d30 [gaim-migrate @ 14745] Properly handle -Wall being set in the environment's CFLAGS. committer: Tailor Script diff -r 92df64b6985b -r 3ac0000247e9 configure.ac --- a/configure.ac Fri Dec 09 06:12:20 2005 +0000 +++ b/configure.ac Fri Dec 09 06:21:21 2005 +0000 @@ -340,6 +340,11 @@ if test "x$GCC" = "xyes"; then + dnl We enable -Wall later, regardless of --enable-debug. + dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. + dnl This leads to warnings we don't want. + CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'` + dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE dnl dnl Future Possibilities