From b428dceeaf87fb35a16c2337ac13105f7d18dfd3 Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Sat, 29 Feb 2020 16:53:00 -0800 Subject: [PATCH] Config: Warn on void * pointer arithmetic. This is handy while developing, but not portable. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 6ccd009a..324656b9 100644 --- a/configure.ac +++ b/configure.ac @@ -250,6 +250,7 @@ if test "x$GCC" = "xyes" ; then JE_CFLAGS_ADD([-Wsign-compare]) JE_CFLAGS_ADD([-Wundef]) 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 is a very handy idiom for things like the tcache static initializer (which dnl has lots of nested structs). See the discussion at.