From: Jim Meyering Date: Sun, 26 Nov 2006 17:51:27 +0000 (+0100) Subject: * Makefile.maint (patch-check): Compile patched sources with X-Git-Tag: COREUTILS-6_7~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a43ee65ee5f30f4a82545033412b3d9a9e37bdaf;p=thirdparty%2Fcoreutils.git * Makefile.maint (patch-check): Compile patched sources with CFLAGS='-Wdeclaration-after-statement -Werror', to ensure that no violations remain. --- diff --git a/ChangeLog b/ChangeLog index 029a1efc84..435a527e11 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 8fa6f7091d..9400b4993b 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