Merge "Don't allow int<->pointer conversions."
This commit is contained in:
commit
65e1c48df0
1 changed files with 7 additions and 1 deletions
|
@ -562,7 +562,13 @@ libc_common_cflags := \
|
||||||
-DINET6 \
|
-DINET6 \
|
||||||
-I$(LOCAL_PATH)/private \
|
-I$(LOCAL_PATH)/private \
|
||||||
-DPOSIX_MISTAKE \
|
-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)
|
ifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
|
||||||
libc_common_cflags += -DDEBUG
|
libc_common_cflags += -DDEBUG
|
||||||
|
|
Loading…
Reference in a new issue