configure: add -Werror-unknown-warning-option

this is needed so the other warning flags we test raise an error and
we can detect whether they're supported.
This commit is contained in:
rofl0r 2017-12-03 16:11:43 +00:00
parent bdd420d7fe
commit 67134f5662
2 changed files with 2 additions and 2 deletions

2
src/configure vendored
View File

@ -3301,7 +3301,7 @@ if test "${enable_savetocurrent+set}" = set; then :
fi
DESIRED_FLAGS="-Wno-unused-but-set-variable"
DESIRED_FLAGS="-Werror-unknown-warning-option -Wno-unused-but-set-variable"
for flag in $DESIRED_FLAGS; do
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $flag" >&5

View File

@ -16,7 +16,7 @@ AC_HELP_STRING([--enable-savetocurrent],
[saves the current session file to the directory reaver was started from])
, [ CFLAGS="$CFLAGS -DSAVETOCURRENT" ])
DESIRED_FLAGS="-Wno-unused-but-set-variable"
DESIRED_FLAGS="-Werror-unknown-warning-option -Wno-unused-but-set-variable"
for flag in $DESIRED_FLAGS; do
AS_COMPILER_FLAG([$flag], [CFLAGS="$CFLAGS $flag"])
done