diff options
author | Rob Landley <rob@landley.net> | 2017-01-04 14:19:06 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-01-04 14:19:06 -0600 |
commit | 85ffccb38ef2c6a14e8d68e999655137c0e4b42b (patch) | |
tree | dc7aaae4abcff97bf6bb683fe39a98c7ef338cfe | |
parent | cba5dc47c1efcf07af044d11af7f64e7516f1075 (diff) | |
download | toybox-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-- | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |