From 2dedd116c95c5e675f37b053a8f09c8b3a294db6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 22 Dec 2017 02:33:48 +0000 Subject: tests: cleanup some unused variable warnings Add a new "check-warnings" target to the GNUmakefile to make checking for this easier. Warnings aren't fatal, and newer versions of Ruby tend to increase warnings. --- GNUmakefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 51045d4..2505e1f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -249,5 +249,10 @@ endif $(PLACEHOLDERS): echo olddoc_placeholder > $@ +check-warnings: + @(for i in $$(git ls-files '*.rb' bin | grep -v '^setup\.rb$$'); \ + do $(RUBY) --disable-gems -d -W2 -c \ + $$i; done) | grep -v '^Syntax OK$$' || : + .PHONY: .FORCE-GIT-VERSION-FILE doc $(T) $(slow_tests) man .PHONY: test-install -- cgit v1.2.3-24-ge0c7