From d997a1d17ae19762430bf14e9e0875a449cef9f2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 13 Feb 2009 13:29:59 -0800 Subject: [PATCH] Add -Wpointer-arith to AG_GST_SET_ERROR_CFLAGS Some compilers throw errors for void* arithmetic, so enabling this allows us to check it in gcc. Besides, void* arithmetic is invalid. --- m4/gst-error.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m4/gst-error.m4 b/m4/gst-error.m4 index 6500450..c5ce242 100644 --- a/m4/gst-error.m4 +++ b/m4/gst-error.m4 @@ -37,6 +37,10 @@ AC_DEFUN([AG_GST_SET_ERROR_CFLAGS], AS_COMPILER_FLAG(-Wvla, ERROR_CFLAGS="$ERROR_CFLAGS -Wvla") + dnl Warn for invalid pointer arithmetic + AS_COMPILER_FLAG(-Wpointer-arith, + ERROR_CFLAGS="$ERROR_CFLAGS -Wpointer-arith") + dnl if asked for, add -Werror if supported if test "x$1" != "xno" then -- 2.7.4