diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-13 12:08:33 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-13 12:08:33 +0000 |
commit | d2ea67e96f5dfb33259b4a96b3bd730c13012003 (patch) | |
tree | f6c006534da15c5e90da50bcf93578852d3ac99c /Makefile.maint | |
parent | 79995f60188d2d7734dc9c74e1c09f12bbfeb03c (diff) | |
download | coreutils-d2ea67e96f5dfb33259b4a96b3bd730c13012003.tar.gz coreutils-d2ea67e96f5dfb33259b4a96b3bd730c13012003.tar.bz2 coreutils-d2ea67e96f5dfb33259b4a96b3bd730c13012003.zip |
(my-distcheck): When building with -Werror, also require -Wshadow.
Diffstat (limited to 'Makefile.maint')
-rw-r--r-- | Makefile.maint | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.maint b/Makefile.maint index 9fced62d1..083b71d27 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -379,7 +379,7 @@ 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. +# treated as a failure. Also, check for shadowing problems with -Wshadow. TMPDIR ?= /tmp t=$(TMPDIR)/$(PACKAGE)/test my-distcheck: $(local-check) @@ -388,7 +388,7 @@ my-distcheck: $(local-check) GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz cd $(t)/$(distdir) \ && ./configure --disable-nls \ - && $(MAKE) CFLAGS='-Wformat -Werror' \ + && $(MAKE) CFLAGS='-Wformat -Werror -Wshadow' \ AM_MAKEFLAGS='$(null_AM_MAKEFLAGS)' \ && $(MAKE) dvi \ && $(MAKE) check \ |