diff options
author | Ozkan Sezer <sezero@users.sourceforge.net> | 2016-02-12 23:49:49 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-02-12 23:49:56 -0800 |
commit | ec3d426e363d07c8a582ff7cf5a31b5e99576ec3 (patch) | |
tree | b6b0cd5236a9d34ec614750ce6b1eba2ae073a09 | |
parent | 2bc798a96877eaf11b3ccce1340f34e46a93f1b9 (diff) | |
download | nasm-ec3d426e363d07c8a582ff7cf5a31b5e99576ec3.tar.gz |
configure.in: Add -Werror flags last (BR 2292332)
configure.in: Add the -Werror flags as the last thing. Otherwise, with
development versions of autoconf, all AC_CHECK_FUNCS calls fails with:
conftest.c:49: error: function declaration isn't a prototype
conftest.c:49: warning: conflicting types for built-in function 'strcspn'
Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | configure.in | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/configure.in b/configure.in index f3274263..023bd240 100644 --- a/configure.in +++ b/configure.in @@ -78,17 +78,6 @@ dnl If we have gcc, add appropriate options 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=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) @@ -192,5 +181,17 @@ AC_ARG_WITH([ccache], [CC="ccache $CC"], []) +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=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]) + AC_OUTPUT_COMMANDS([mkdir -p output]) AC_OUTPUT(Makefile rdoff/Makefile doc/Makefile) |