From 85ffccb38ef2c6a14e8d68e999655137c0e4b42b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 4 Jan 2017 14:19:06 -0600 Subject: 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.) --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') 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" -- cgit v1.2.3