don't use -Wsign-promo, it is C++ only and causes warnings with gcc 3.3
authorFrédéric Crozat <fcrozat@src.gnome.org>
Fri, 4 Jul 2003 12:37:37 +0000 (12:37 +0000)
committerFrédéric Crozat <fcrozat@src.gnome.org>
Fri, 4 Jul 2003 12:37:37 +0000 (12:37 +0000)
        * macros2/compiler-flags.m4: don't use -Wsign-promo, it is
        C++ only and causes warnings with gcc 3.3 when used on C.

svn path=/trunk/; revision=3048

ChangeLog
macros2/compiler-flags.m4

index 763798e..0667af1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-04  Frederic Crozat  <fcrozat@mandrakesoft.com>
+
+       * macros2/compiler-flags.m4: don't use -Wsign-promo, it is 
+       C++ only and causes warnings with gcc 3.3 when used on C.
+
 2003-06-24  Marco Pesenti Gritti  <marco@it.gnome.org>
 
        * macros2/autogen.sh:
index 6163602..7d5fb18 100644 (file)
@@ -36,7 +36,7 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
     maximum|error)
        warning_flags="-Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
        CFLAGS="$warning_flags $CFLAGS"
-       for option in -Wsign-promo -Wno-sign-compare; do
+       for option in -Wno-sign-compare; do
                SAVE_CFLAGS="$CFLAGS"
                CFLAGS="$CFLAGS $option"
                AC_MSG_CHECKING([whether gcc understands $option])