aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-01-04 14:19:06 -0600
committerRob Landley <rob@landley.net>2017-01-04 14:19:06 -0600
commit85ffccb38ef2c6a14e8d68e999655137c0e4b42b (patch)
treedc7aaae4abcff97bf6bb683fe39a98c7ef338cfe
parentcba5dc47c1efcf07af044d11af7f64e7516f1075 (diff)
downloadtoybox-85ffccb38ef2c6a14e8d68e999655137c0e4b42b.tar.gz
Implicit function declarations are an error, not a warning.
(The switch to 64 bits screwed up varargs: everything used to be promoted to 32 bits, but now it's 32 bits or 64 bits depending on type declarations, so you need the type declarations. Because promoting "char" arguments to 32 bits back when a megabyte was a lot of memory was ok, but promoting everything to 64 bits now that you can get 2 gigabytes of ram in a phone is unacceptable.)
-rw-r--r--configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 7b10f6e5..a7a427f6 100644
--- a/configure
+++ b/configure
@@ -7,7 +7,7 @@
# CFLAGS and OPTIMIZE are different so you can add extra CFLAGS without
# disabling default optimizations
-[ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts"
+[ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts -Werror=implicit-function-declaration"
# Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned.
CFLAGS="$CFLAGS -funsigned-char"
[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-strict-aliasing"