Commit d997a1d1 authored by David Schleef's avatar David Schleef

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.
parent 87936c48
......@@ -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
......
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