diff options
-rw-r--r-- | Android.common.mk | 1 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | meson.build | 1 |
3 files changed, 3 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 \ diff --git a/configure.ac b/configure.ac index f3c2c3040a1..d8124479c76 100644 --- a/configure.ac +++ b/configure.ac @@ -320,6 +320,7 @@ dnl AX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"]) AX_CHECK_COMPILE_FLAG([-Werror=implicit-function-declaration], [CFLAGS="$CFLAGS -Werror=implicit-function-declaration"]) AX_CHECK_COMPILE_FLAG([-Werror=missing-prototypes], [CFLAGS="$CFLAGS -Werror=missing-prototypes"]) +AX_CHECK_COMPILE_FLAG([-Werror=incompatible-pointer-types], [CFLAGS="$CFLAGS -Werror=incompatible-pointer-types"]) AX_CHECK_COMPILE_FLAG([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"]) dnl Dylan Baker: gcc and clang always accepr -Wno-*, hence check for the original warning, then set the no-* flag AX_CHECK_COMPILE_FLAG([-Wmissing-field-initializers], [CFLAGS="$CFLAGS -Wno-missing-field-initializers"]) diff --git a/meson.build b/meson.build index 8a40c48e435..2ccf5f2a4ca 100644 --- a/meson.build +++ b/meson.build @@ -804,6 +804,7 @@ endif c_args = [] foreach a : ['-Werror=implicit-function-declaration', '-Werror=missing-prototypes', '-Werror=return-type', + '-Werror=incompatible-pointer-types', '-fno-math-errno', '-fno-trapping-math', '-Qunused-arguments'] if cc.has_argument(a) |