am 5596240c: am 65e1c48d: Merge "Don\'t allow int<->pointer conversions."

* commit '5596240cc86920115cffbfe7aac66116d5136a0b':
  Don't allow int<->pointer conversions.
This commit is contained in:
Elliott Hughes 2013-10-08 17:28:25 -07:00 committed by Android Git Automerger
commit 5ca2f97fb6

View File

@ -563,7 +563,13 @@ libc_common_cflags := \
-DINET6 \
-I$(LOCAL_PATH)/private \
-DPOSIX_MISTAKE \
-Wall -Wextra
-Wall -Wextra \
# Try to catch typical 32-bit assumptions that break with 64-bit pointers.
libc_common_cflags += \
-Werror=pointer-to-int-cast \
-Werror=int-to-pointer-cast \
-Werror=type-limits \
ifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
libc_common_cflags += -DDEBUG