From 22bb28215578e1e15e0ce97b901751a48877ac95 Mon Sep 17 00:00:00 2001 From: "briano%netscape.com" Date: Sat, 4 Sep 1999 01:20:49 +0000 Subject: [PATCH] Moved the _PEDANTIC definition up to the top so it can be automatically overridden for any OS (in this case BSDI). git-svn-id: svn://10.0.0.236/trunk@45985 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/configure.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mozilla/configure.in b/mozilla/configure.in index 7812b12ac3d..7e3436034f9 100644 --- a/mozilla/configure.in +++ b/mozilla/configure.in @@ -447,6 +447,9 @@ if test "$GNU_CC"; then # -Wconversion - complained when char's or short's were used a function args _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wall -Wshadow -Wpointer-arith -Wcast-align" + dnl Make pedantic a flag for now since the builds currently choke on it. + _PEDANTIC=1 + _DEFINES_CFLAGS='-include $(DEPTH)/config-defs.h' _USE_CPP_INCLUDE_FLAG=1 else @@ -544,6 +547,8 @@ case "$target" in ;; *-bsdi*) + dnl -pedantic doesn't play well with BSDI's _very_ modified gcc (shlicc2) + _PEDANTIC= case `uname -r` in 4.*) ;; *) @@ -2427,10 +2432,6 @@ fi AC_SUBST(COMPILER_DEPEND) AC_SUBST(MDDEPDIR) -dnl Make pedantic a flag for now since the builds currently choke on it. -if test "$GNU_CC"; then - _PEDANTIC=1 -fi MOZ_ARG_DISABLE_BOOL(pedantic, [ --disable-pedantic Issue all warnings demanded by strict ANSI C ], _PEDANTIC= )