Commit a117a5b8 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin

autoconf: Silence void pointer arithmetic warnings

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

v2:
 * Do it properly. (Chris Wilson)
Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent 27027cf0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment