forked from openkylin/platform_build
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:
parent
0f672c6aad
commit
b97d8c78e2
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue