summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-01-30 05:24:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:35 -0500
commit7daa5d139feaf761914f1c0a3cf812219fcb804d (patch)
tree68c588a549ae99c8e8534d70a9bea9bd05d30755 /source4/build/m4
parent713b296441ec8b1447a0bc451720a8b84fd7e1fc (diff)
downloadsamba-7daa5d139feaf761914f1c0a3cf812219fcb804d.tar.gz
samba-7daa5d139feaf761914f1c0a3cf812219fcb804d.tar.bz2
samba-7daa5d139feaf761914f1c0a3cf812219fcb804d.zip
r13225: Enable full compiler warnings for developer mode on IRIX.
(This used to be commit 2aefbcb47272536d8c2229f8b199f7cd7da7d890)
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/check_cc.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 7551b67b17..f65adbbca4 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -141,10 +141,11 @@ fi
#
DEVELOPER_CFLAGS=""
if test x$developer = xyes; then
+ OLD_CFLAGS="${CFLAGS}"
+
+ CFLAGS="${CFLAGS} -D_SAMBA_DEVELOPER_DONNOT_USE_O2_"
DEVELOPER_CFLAGS="-DDEBUG_PASSWORD -DDEVELOPER"
if test x"$GCC" = x"yes" ; then
- OLD_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} -D_SAMBA_DEVELOPER_DONNOT_USE_O2_"
AX_CFLAGS_GCC_OPTION(-Wall, DEVELOPER_CFLAGS)
AX_CFLAGS_GCC_OPTION(-Wshadow, DEVELOPER_CFLAGS)
AX_CFLAGS_GCC_OPTION(-Werror-implicit-function-declaration, DEVELOPER_CFLAGS)
@@ -157,8 +158,11 @@ if test x$developer = xyes; then
AX_CFLAGS_GCC_OPTION(-Wformat=2, DEVELOPER_CFLAGS)
AX_CFLAGS_GCC_OPTION(-Wno-format-y2k, DEVELOPER_CFLAGS)
AX_CFLAGS_GCC_OPTION(-Wno-declaration-after-statement, DEVELOPER_CFLAGS)
- CFLAGS="${OLD_CFLAGS}"
+ else
+ AX_CFLAGS_IRIX_OPTION(-fullwarn, DEVELOPER_CFLAGS)
fi
+
+ CFLAGS="${OLD_CFLAGS}"
fi
if test -n "$DEVELOPER_CFLAGS"; then
OLD_CFLAGS="${CFLAGS}"