summaryrefslogtreecommitdiff
path: root/Android.common.mk
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2018-11-20 12:32:18 +0000
committerEric Engestrom <eric@engestrom.ch>2019-03-08 16:24:06 +0000
commite1d81decf7a093867f051786a5d7f6ce4d827ff1 (patch)
tree0164b600998902f27e0d98a4cb9880a8bb5f87d8 /Android.common.mk
parent598f10eacca1488e580779fc9b6110ed9cba1f13 (diff)
build: make passing an incorrect pointer type a hard error
More or less any of this issue pointed out by the compiler is a coding error. Make sure we flag it and bail loudly. v2: - apply the change to autotools and scons as well (Emil) - C++ doesn't need this, it's already an error and the flag doesn't exist (Gert) v3: - drop scons, flags are not checked so until someone adds that functionality we can't have this. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> # v1 Reviewed-by: Emil Velikov <emil.velikov@collabora.com> # v1 [Emil: apply the same change to autotools and scons] Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'Android.common.mk')
-rw-r--r--Android.common.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk
index 60459d16eba..35ef2bfeb82 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -32,6 +32,7 @@ LOCAL_C_INCLUDES += \
MESA_VERSION := $(shell cat $(MESA_TOP)/VERSION)
LOCAL_CFLAGS += \
-Wno-error \
+ -Werror=incompatible-pointer-types
-Wno-unused-parameter \
-Wno-pointer-arith \
-Wno-missing-field-initializers \