[gaim-migrate @ 14745]

Fri, 09 Dec 2005 06:21:21 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Fri, 09 Dec 2005 06:21:21 +0000
changeset 12438
b993017e8f68
parent 12437
8273decd4841
child 12439
50f1e8799480

[gaim-migrate @ 14745]
Properly handle -Wall being set in the environment's CFLAGS.

configure.ac file | annotate | diff | comparison | revisions
--- 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

mercurial