From 2a1ef3c817336f8ed64e0a78773de9e798810393 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 29 Aug 2006 09:29:09 +0000 Subject: r17904: we don't want warnings about unused parameters volker that one was for you:-) metze (This used to be commit d0aa78177d24877320bac2294328e0083f34e9a5) --- source4/build/m4/check_cc.m4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index cae9c38ef21..3999ad349ed 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -164,6 +164,9 @@ if test x$developer = xyes; then CFLAGS="${CFLAGS} -D_SAMBA_DEVELOPER_DONNOT_USE_O2_" DEVELOPER_CFLAGS="-DDEBUG_PASSWORD -DDEVELOPER" if test x"$GCC" = x"yes" ; then + # + # warnings we want... + # AX_CFLAGS_GCC_OPTION(-Wall, DEVELOPER_CFLAGS) AX_CFLAGS_GCC_OPTION(-Wshadow, DEVELOPER_CFLAGS) AX_CFLAGS_GCC_OPTION(-Werror-implicit-function-declaration, DEVELOPER_CFLAGS) @@ -174,13 +177,18 @@ if test x$developer = xyes; then AX_CFLAGS_GCC_OPTION(-Wwrite-strings, DEVELOPER_CFLAGS) AX_CFLAGS_GCC_OPTION(-Wmissing-format-attribute, DEVELOPER_CFLAGS) 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) +# AX_CFLAGS_GCC_OPTION(-Wextra, DEVELOPER_CFLAGS) # AX_CFLAGS_GCC_OPTION(-Wc++-compat, DEVELOPER_CFLAGS) # AX_CFLAGS_GCC_OPTION(-Wmissing-prototypes, DEVELOPER_CFLAGS) # AX_CFLAGS_GCC_OPTION(-Wmissing-declarations, DEVELOPER_CFLAGS) # AX_CFLAGS_GCC_OPTION(-Wmissing-field-initializers, DEVELOPER_CFLAGS) + # + # warnings we don't want... + # + AX_CFLAGS_GCC_OPTION(-Wno-format-y2k, DEVELOPER_CFLAGS) + AX_CFLAGS_GCC_OPTION(-Wno-unused-parameter, DEVELOPER_CFLAGS) else AX_CFLAGS_IRIX_OPTION(-fullwarn, DEVELOPER_CFLAGS) fi -- cgit v1.2.1