Config: Warn on void * pointer arithmetic.

This is handy while developing, but not portable.
This commit is contained in:
David Goldblatt 2020-02-29 16:53:00 -08:00 committed by David Goldblatt
parent 22657a5e65
commit b428dceeaf

View File

@ -250,6 +250,7 @@ if test "x$GCC" = "xyes" ; then
JE_CFLAGS_ADD([-Wsign-compare]) JE_CFLAGS_ADD([-Wsign-compare])
JE_CFLAGS_ADD([-Wundef]) JE_CFLAGS_ADD([-Wundef])
JE_CFLAGS_ADD([-Wno-format-zero-length]) JE_CFLAGS_ADD([-Wno-format-zero-length])
JE_CFLAGS_ADD([-Wpointer-arith])
dnl This warning triggers on the use of the universal zero initializer, which dnl This warning triggers on the use of the universal zero initializer, which
dnl is a very handy idiom for things like the tcache static initializer (which dnl is a very handy idiom for things like the tcache static initializer (which
dnl has lots of nested structs). See the discussion at. dnl has lots of nested structs). See the discussion at.