forked from openkylin/platform_build
am 5e7fd729: am 2c5b6ab5: am 8389deee: Merge "mips64 should avoid common LP64 errors just like arm64 and x86-64."
* commit '5e7fd72982942e6aa3a7b10a8ff0fa978c2b24c1': mips64 should avoid common LP64 errors just like arm64 and x86-64.
This commit is contained in:
commit
473984e59b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue