mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
Make --disable-werror work
autoconf's handling of --without and --disable are a bit counterintuitive: instead of calling the "not given" branch of the conditional, they instead call the "given" part of the conditional with an argument of "no". Make --disable-werror work as expected. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
54469e27d0
commit
fdf0d07310
@ -186,6 +186,8 @@ PA_ADD_CFLAGS([-pedantic])
|
||||
AC_ARG_ENABLE([werror],
|
||||
[AC_HELP_STRING([--enable-werror],
|
||||
[compile with -Werror to error out on any warning])],
|
||||
[], [enable_werror=no])
|
||||
AS_IF([test x"$enable_werror" != xno],
|
||||
[PA_ADD_CFLAGS([-Werror])],
|
||||
[PA_ADD_CFLAGS([-Werror=implicit])
|
||||
PA_ADD_CFLAGS([-Werror=missing-braces])
|
||||
|
Loading…
x
Reference in New Issue
Block a user