]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build failure.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 29 Jun 2014 05:14:35 +0000 (14:14 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 29 Jun 2014 05:14:35 +0000 (14:14 +0900)
error: declaration shadows a variable in the global scope [-Werror,-Wshadow]

libarchive/test/main.c

index fcb0f6901c0eebdb0779b4fa0860966d43016c90..d21640ee5b69892e00f70123f98b0a7b649f01d4 100644 (file)
@@ -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;
        }