diff mbox series

[i-g-t,1/2] autoconf: Silence void pointer arithmetic warnings

Message ID 20190301103202.11778-1-tvrtko.ursulin@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series [i-g-t,1/2] autoconf: Silence void pointer arithmetic warnings | expand

Commit Message

Tvrtko Ursulin March 1, 2019, 10:32 a.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Meson build does it so make the two symmetrical in this respect.

v2:
 * Do it properly. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

Comments

Chris Wilson March 1, 2019, 10:38 a.m. UTC | #1
Quoting Tvrtko Ursulin (2019-03-01 10:32:01)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> Meson build does it so make the two symmetrical in this respect.
> 
> v2:
>  * Do it properly. (Chris Wilson)
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 4f55ea5d0f89..e22703d03198 100644
--- a/configure.ac
+++ b/configure.ac
@@ -256,6 +256,9 @@  AC_ARG_ENABLE(werror,
 			     [Fail on warnings]),
 	      [], [enable_werror=no])
 
+# disable "warning: pointer of type ‘void *’ used in arithmetic"
+AS_COMPILER_FLAG([-Wno-pointer-arith], [CWARNFLAGS+=" -Wno-pointer-arith"], [])
+
 if test "x$enable_debug" = xyes; then
 	AS_COMPILER_FLAG([-g3], [DEBUG_CFLAGS="-g3"], [DEBUG_CFLAGS="-g"])
 	AS_COMPILER_FLAG([-Og], [DEBUG_CFLAGS+=" -Og -Wno-maybe-uninitialized"], # disable maybe-uninitialized due to false positives