From 50f3f29a7ecdb16b2aff9201390d72583f1e4813 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sat, 1 Mar 2025 09:06:31 -0800 Subject: [PATCH] Avoid unreachable code in this test (#2528) As remarked in #2521, this test has unreachable code on Windows, which triggers a build failure in development due to warnings-as-errors. (Release versions should not have warnings-as-errors.) (cherry picked from commit 3512329ba9a06a7360601f195c5013c3161f5e70) --- tar/test/test_option_ignore_zeros.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tar/test/test_option_ignore_zeros.c b/tar/test/test_option_ignore_zeros.c index 31e0dd940..453e8a090 100644 --- a/tar/test/test_option_ignore_zeros.c +++ b/tar/test/test_option_ignore_zeros.c @@ -76,8 +76,7 @@ DEFINE_TEST(test_option_ignore_zeros_mode_c) // bsdtar.exe: b: Can't translate uname '(null)' to UTF-8 skipping("TODO: figure out why this test fails on github workflows with MSVC"); return; -#endif - +#else if (make_files()) return; @@ -97,6 +96,7 @@ DEFINE_TEST(test_option_ignore_zeros_mode_c) assertEqualFile("out/a", "in/a"); assertEqualFile("out/b", "in/b"); assertEqualFile("out/c", "in/c"); +#endif } static void -- 2.47.3