aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-04-03 14:03:42 +0000
committerOmar Polo <op@omarpolo.com>2024-04-03 14:03:42 +0000
commit40ea7b163e15d70788aa7a8189f9000109a7b931 (patch)
tree74f44a24eff0cc260b3888824b1288942973b238 /configure
parentbe265175c65f1b5425e294b06874e87aa900bde1 (diff)
use -Werror=implicit-function-declaration for function detection
the previous -Werror triggers too easily: on NixOS for example the FORTIFY_SOURCE #warning about a missing optimization level breaks all the checks when using -O0 (which is the default for non-release builds).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 9f0dc54..ae7fc40 100755
--- a/configure
+++ b/configure
@@ -146,7 +146,7 @@ NEED_OPENBSD_SOURCE=0
NEED_LIBBSD_OPENBSD_VIS=0
COMPATS=
-COMP="${CC} ${CFLAGS} -Wno-unused -Werror"
+COMP="${CC} ${CFLAGS} -Werror=implicit-function-declaration"
# singletest name var extra-cflags extra-libs msg
singletest() {