From 09f14551d8a25b525812cb411558544a56c4cf4c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 30 Aug 2019 00:14:43 -0500 Subject: [PATCH] detect.sh: use -Wno-error Don't let -Werror interfere with the feature detection. --- programs/detect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/detect.sh b/programs/detect.sh index 9139cf6..7d6ff7e 100755 --- a/programs/detect.sh +++ b/programs/detect.sh @@ -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() {