summaryrefslogtreecommitdiffstats
path: root/core/combo
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-21 11:01:11 -0800
committerElliott Hughes <enh@google.com>2015-02-21 11:01:11 -0800
commitb97d8c78e2c8ca6978d1db19c3c07e4eb114bade (patch)
treeb4cb9258aee259dc3b9d7b7c0c5515f56c523d4e /core/combo
parent0f672c6aad22dde39a172ae0b5f0b76068008f30 (diff)
downloadbuild-b97d8c78e2c8ca6978d1db19c3c07e4eb114bade.zip
build-b97d8c78e2c8ca6978d1db19c3c07e4eb114bade.tar.gz
build-b97d8c78e2c8ca6978d1db19c3c07e4eb114bade.tar.bz2
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
Diffstat (limited to 'core/combo')
-rw-r--r--core/combo/TARGET_linux-x86_64.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/combo/TARGET_linux-x86_64.mk b/core/combo/TARGET_linux-x86_64.mk
index d92e974..046a42b 100644
--- a/core/combo/TARGET_linux-x86_64.mk
+++ b/core/combo/TARGET_linux-x86_64.mk
@@ -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))