From a43ee65ee5f30f4a82545033412b3d9a9e37bdaf Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 26 Nov 2006 18:51:27 +0100 Subject: [PATCH] * Makefile.maint (patch-check): Compile patched sources with CFLAGS='-Wdeclaration-after-statement -Werror', to ensure that no violations remain. --- ChangeLog | 4 ++++ Makefile.maint | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 029a1ef..435a527 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-11-26 Jim Meyering + * Makefile.maint (patch-check): Compile patched sources with + CFLAGS='-Wdeclaration-after-statement -Werror', to ensure that + no violations remain. + * src/c99-to-c89.diff: Remove 3 bogus hunks. * src/remove.c (fd_to_subdirp): Remove unused parameter, ds. diff --git a/Makefile.maint b/Makefile.maint index 8fa6f70..9400b49 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -334,6 +334,9 @@ patch-check: if test "$${REGEN_PATCH+set}" = set; then \ diff -upr src src-c89 > new-diff || : ; fi fail=0; test -s $@.2 && fail=1 || : ; \ + rm -f src-c89/*.o || fail=1; \ + $(MAKE) -C src-c89 CFLAGS='-g -Wdeclaration-after-statement -Werror' \ + || fail=1; \ rm -rf src-c89 $@.1 $@.2; \ test $$fail = 0 -- 2.7.4