From 2611e699832588b30889fd072f88f4ac15b6cc74 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 26 May 2018 13:37:46 +0100 Subject: [PATCH] Enable -Wpointer-arith in the autoconf build. That should stop me making that kind of mistake again. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f6d1ba5e..2c6484ca 100644 --- a/configure.ac +++ b/configure.ac @@ -188,7 +188,7 @@ AS_IF([test AS_VAR_GET(x_cv_linux_so_peercred) = yes], if test "x$GCC" = "xyes"; then : - AC_SUBST(WARNINGOPTS, ['-Wall -Werror']) + AC_SUBST(WARNINGOPTS, ['-Wall -Werror -Wpointer-arith']) else : AC_SUBST(WARNINGOPTS, [])