summaryrefslogtreecommitdiffstats
path: root/core/combo
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-24 16:04:31 -0800
committerElliott Hughes <enh@google.com>2015-02-24 16:04:31 -0800
commitd1ea5fbf7beb097ef171c0394b9997c713a16c8c (patch)
tree9e4cae86ad814f7706d30c91e726baec4cc2f6eb /core/combo
parenta82f7db9006ca838fd0c474d2dcc38630ed1fa20 (diff)
downloadbuild-d1ea5fbf7beb097ef171c0394b9997c713a16c8c.zip
build-d1ea5fbf7beb097ef171c0394b9997c713a16c8c.tar.gz
build-d1ea5fbf7beb097ef171c0394b9997c713a16c8c.tar.bz2
mips64 should avoid common LP64 errors just like arm64 and x86-64.
Change-Id: Ibce5863bee3175671862c1889869b43bcb39a074
Diffstat (limited to 'core/combo')
-rw-r--r--core/combo/TARGET_linux-mips64.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/combo/TARGET_linux-mips64.mk b/core/combo/TARGET_linux-mips64.mk
index 5c5610e..c6f9f29 100644
--- a/core/combo/TARGET_linux-mips64.mk
+++ b/core/combo/TARGET_linux-mips64.mk
@@ -96,6 +96,12 @@ TARGET_GLOBAL_CFLAGS += \
-include $(android_config_h) \
-I $(dir $(android_config_h))
+# Help catch common 32/64-bit errors.
+TARGET_GLOBAL_CFLAGS += \
+ -Werror=pointer-to-int-cast \
+ -Werror=int-to-pointer-cast \
+ -Werror=implicit-function-declaration \
+
ifneq ($(ARCH_MIPS_PAGE_SHIFT),)
TARGET_GLOBAL_CFLAGS += -DPAGE_SHIFT=$(ARCH_MIPS_PAGE_SHIFT)
endif