mips64 should avoid common LP64 errors just like arm64 and x86-64.

Change-Id: Ibce5863bee3175671862c1889869b43bcb39a074
This commit is contained in:
Elliott Hughes 2015-02-24 16:04:31 -08:00
parent a82f7db900
commit d1ea5fbf7b
1 changed files with 6 additions and 0 deletions

View File

@ -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