diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | macros2/compiler-flags.m4 | 8 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,10 @@ +2003-08-23 Marco Pesenti Gritti <marco@gnome.org> + + * macros2/compiler-flags.m4: + + Define WARN_CXXFLAGS instead of overwriting + CXXFLAGS (like WARN_FLAGS). + 2003-07-04 Frederic Crozat <fcrozat@mandrakesoft.com> * macros2/compiler-flags.m4: don't use -Wsign-promo, it is diff --git a/macros2/compiler-flags.m4 b/macros2/compiler-flags.m4 index c80710eb..b2b022c0 100644 --- a/macros2/compiler-flags.m4 +++ b/macros2/compiler-flags.m4 @@ -135,9 +135,7 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[ fi fi AC_MSG_RESULT($complCXXFLAGS) - if test "x$cxxflags_set" != "xyes"; then - CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" - cxxflags_set=yes - AC_SUBST(cxxflags_set) - fi + + WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" + AC_SUBST(WARN_CXXFLAGS) ]) |