summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-11-25 12:14:14 -0800
committerH. Peter Anvin <hpa@zytor.com>2014-11-25 12:14:52 -0800
commit236f7949e44434f19a3f72fa4650362f612da735 (patch)
treebb5ffe04cb20d68d4eb031e1f3cfac866008bae2
parent4de7a764d5d38f8a62360179c0a99a179a98c08a (diff)
downloadnasm-236f7949e44434f19a3f72fa4650362f612da735.tar.gz
configure.in: promote some C warnings to errors
Promote some C warnings to errors, especially ones relating to missing prototypes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 85719736..97e5c882 100644
--- a/configure.in
+++ b/configure.in
@@ -65,6 +65,17 @@ PA_ADD_CFLAGS([-W])
PA_ADD_CFLAGS([-Wall])
PA_ADD_CFLAGS([-std=c99])
PA_ADD_CFLAGS([-pedantic])
+PA_ADD_CFLAGS([-Werror=implicit])
+PA_ADD_CFLAGS([-Werror=missing-braces])
+PA_ADD_CFLAGS([-Werror=return-type])
+PA_ADD_CFLAGS([-Werror=trigraphs])
+PA_ADD_CFLAGS([-Werror=trigraphs])
+PA_ADD_CFLAGS([-Werror=pointer-arith])
+PA_ADD_CFLAGS([-Werror=strict-prototypes])
+PA_ADD_CFLAGS([-Werror=missing-prototypes])
+PA_ADD_CFLAGS([-Werror=missing-declarations])
+PA_ADD_CFLAGS([-Werror=comment])
+PA_ADD_CFLAGS([-Werror=vla])
dnl Look for programs...
AC_CHECK_PROGS(NROFF, nroff, false)