From 7679625dbeb6b9bac6e5080d3903364b33da87fa Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Sun, 29 Jun 2014 14:14:35 +0900 Subject: [PATCH] Fix build failure. error: declaration shadows a variable in the global scope [-Werror,-Wshadow] --- libarchive/test/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libarchive/test/main.c b/libarchive/test/main.c index fcb0f6901..d21640ee5 100644 --- a/libarchive/test/main.c +++ b/libarchive/test/main.c @@ -2289,7 +2289,7 @@ struct test_list_t tests[] = { * Summarize repeated failures in the just-completed test. */ static void -test_summarize(int failed, int skips) +test_summarize(int failed, int skips_num) { unsigned int i; @@ -2299,7 +2299,7 @@ test_summarize(int failed, int skips) fflush(stdout); break; case VERBOSITY_PASSFAIL: - printf(failed ? "FAIL\n" : skips ? "ok (S)\n" : "ok\n"); + printf(failed ? "FAIL\n" : skips_num ? "ok (S)\n" : "ok\n"); break; } -- 2.47.2