detect.sh: use -Wno-error

Don't let -Werror interfere with the feature detection.
This commit is contained in:
Eric Biggers 2019-08-30 00:14:43 -05:00
parent a0f88e7787
commit 09f14551d8

View File

@ -13,7 +13,7 @@ trap "rm -f \"$tmpfile\"" EXIT
program_compiles() {
echo "$1" > "$tmpfile"
$CC $CFLAGS -x c "$tmpfile" -o /dev/null > /dev/null 2>&1
$CC $CFLAGS -Wno-error -x c "$tmpfile" -o /dev/null > /dev/null 2>&1
}
check_function() {