From 564476d8291955dd4823076699ed242d9beb2ba1 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Thu, 29 Apr 2010 09:47:46 +0100 Subject: win32.mak: rename check-nonportable-int64-print-format rule and check for %zu Rename check-nonportable-int64-print-format rule to check-nonportable-print-format and also check for %zu, %zd, etc. --- win32.mak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win32.mak b/win32.mak index a962e89..94afaec 100644 --- a/win32.mak +++ b/win32.mak @@ -56,13 +56,13 @@ check-exports: fi; \ exit $$fail -# complain about nonportable 64-bit printf format strings (%lld, %llu etc.) -check-nonportable-int64-print-format: +# complain about nonportable printf format strings (%lld, %llu, %zu etc.) +check-nonportable-print-format: @fail=0 ; \ - loc=`find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]'`; \ + loc=`find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]' -e '%[0-9]*z[udx]'`; \ if test "x$$loc" != "x"; then \ echo "Please fix the following print format strings:" ; \ - find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]'; \ + find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]' -e '%[0-9]*z[udx]'; \ fail=1; \ fi; \ exit $$fail -- cgit v1.2.3