summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--macros2/compiler-flags.m42
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 763798e3..0667af1d 100644
--- 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:
diff --git a/macros2/compiler-flags.m4 b/macros2/compiler-flags.m4
index 6163602d..7d5fb18e 100644
--- a/macros2/compiler-flags.m4
+++ b/macros2/compiler-flags.m4
@@ -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])