Turn on -Werror=implicit-function-declaration for arm64.

Implicit function declarations are much more dangerous on LP64 because
sizeof(int) != sizeof(void*), so any function that returns a pointer will
lose its top bits, leading to relatively hard to debug crashes.

Change-Id: Ia05beffb949ca747833c2e12c40daf896f7a60a5
This commit is contained in:
Elliott Hughes 2015-02-21 13:21:20 -08:00
parent 0f672c6aad
commit f5e204b3f4
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ TARGET_GLOBAL_CFLAGS += \
TARGET_GLOBAL_CFLAGS += \
-Werror=pointer-to-int-cast \
-Werror=int-to-pointer-cast \
-Werror=implicit-function-declaration \
TARGET_GLOBAL_CFLAGS += -fno-strict-volatile-bitfields