summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-08-09 18:08:06 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-08-09 18:08:06 +0000
commitadcb60e9d88180aa2087f1793e98cc6986db9920 (patch)
tree8c11391b39b23d3fd80bacfb2cb8bdde33d9d623
parentb1a2656bdb41940f41deaa27d390ec311a06da2b (diff)
downloadcoreutils-adcb60e9d88180aa2087f1793e98cc6986db9920.tar.xz
(my-distcheck): Compile with -Wpointer-arith
to detect this sort of problem automatically in the future.
-rw-r--r--Makefile.maint5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 739ddbfc3..2d4da4015 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -450,7 +450,8 @@ null_AM_MAKEFLAGS = \
# Detect format-string/arg-list mismatches that would normally be obscured
# by the use of _(). The --disable-nls effectively defines away that macro,
# and building with CFLAGS='-Wformat -Werror' causes any format warning to be
-# treated as a failure. Also, check for shadowing problems with -Wshadow.
+# treated as a failure. Also, check for shadowing problems with -Wshadow,
+# and for pointer arithmetic problems with -Wpointer-arith.
# These CFLAGS are pretty strict. If you build this target, you probably
# have to have a recent version of gcc and glibc headers.
TMPDIR ?= /tmp
@@ -461,7 +462,7 @@ my-distcheck: $(local-check) $(release_archive_dir)/$(prev-tgz)
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz
cd $(t)/$(distdir) \
&& ./configure --disable-nls \
- && $(MAKE) CFLAGS='-Werror -Wall -Wformat -Wshadow' \
+ && $(MAKE) CFLAGS='-Werror -Wall -Wformat -Wshadow -Wpointer-arith' \
AM_MAKEFLAGS='$(null_AM_MAKEFLAGS)' \
&& $(MAKE) dvi \
&& $(MAKE) check \