summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-24 07:58:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:39 -0500
commit1ec1c32ea18dab5a4ee48706bf0dce107b24fcd5 (patch)
treeb20e4e91b5d3401f1be304ab7845296eca7ffcee /source4/build
parent66337169f13592c85b15d18115893f5c8a53f866 (diff)
downloadsamba-1ec1c32ea18dab5a4ee48706bf0dce107b24fcd5.tar.gz
samba-1ec1c32ea18dab5a4ee48706bf0dce107b24fcd5.tar.bz2
samba-1ec1c32ea18dab5a4ee48706bf0dce107b24fcd5.zip
r17772: warn about unused macros
(only when defined in the .c file not in headers) metze (This used to be commit a6f22cd924ce040d6b3c31c9c483f1c256015f8d)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/check_cc.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index efb9568729..17384efd0e 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -176,6 +176,7 @@ 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(-Wdeclaration-after-statement, DEVELOPER_CFLAGS)
+ AX_CFLAGS_GCC_OPTION(-Wunused-macros, DEVELOPER_CFLAGS)
else
AX_CFLAGS_IRIX_OPTION(-fullwarn, DEVELOPER_CFLAGS)
fi