Turn on -Werror=implicit-function-declaration for x86-64.

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: Ib2570326dde1b1cde09c63c9b4c973d741528ee2
This commit is contained in:
Elliott Hughes 2015-02-21 11:01:11 -08:00
parent 0f672c6aad
commit b97d8c78e2
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ TARGET_GLOBAL_CFLAGS += \
TARGET_GLOBAL_CFLAGS += \
-Werror=pointer-to-int-cast \
-Werror=int-to-pointer-cast \
-Werror=implicit-function-declaration \
android_config_h := $(call select-android-config-h,target_linux-x86)
TARGET_ANDROID_CONFIG_CFLAGS := -include $(android_config_h) -I $(dir $(android_config_h))