summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-09-02 12:50:08 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-09-02 12:50:08 +0000
commit354669a1a8cc1d5988bb9ce14faf5248ff94327e (patch)
tree5bfb7a556016427ce3e2904402d66bd1b97c2507 /m4
parent916b3e11abe6949b2d40e311c0116c2ced2529da (diff)
downloadmpc-354669a1a8cc1d5988bb9ce14faf5248ff94327e.tar.gz
mpc.m4: added more warning flags for the development cycle
tests/: tiny changes to accomodate these flags git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@827 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'm4')
-rw-r--r--m4/mpc.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/mpc.m4 b/m4/mpc.m4
index 6e83053..f537299 100644
--- a/m4/mpc.m4
+++ b/m4/mpc.m4
@@ -117,6 +117,11 @@ AC_DEFUN([MPC_PROG_CC_WARNINGCFLAGS], [
AX_C_CHECK_FLAG(-Wall,,,$1="$$1 -Wall",)
AX_C_CHECK_FLAG(-Wextra,,,$1="$$1 -Wextra",)
AX_C_CHECK_FLAG(-Werror,,,$1="$$1 -Werror",)
+ AX_C_CHECK_FLAG(-Wdeclaration-after-statement,,,$1="$$1 -Wdeclaration-after-statement",)
+ AX_C_CHECK_FLAG(-Wundef,,,$1="$$1 -Wundef",)
+ AX_C_CHECK_FLAG(-Wshadow,,,$1="$$1 -Wshadow",)
+ AX_C_CHECK_FLAG(-Wstrict-prototypes,,,$1="$$1 -Wstrict-prototypes",)
+ AX_C_CHECK_FLAG(-Wmissing-prototypes,,,$1="$$1 -Wmissing-prototypes",)
AC_SUBST($1)
fi
fi