]> git.ipfire.org Git - thirdparty/git.git/commitdiff
reftable: ignore remove() return value in stack_test.c
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 20 Jan 2022 15:12:04 +0000 (15:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jan 2022 19:31:52 +0000 (11:31 -0800)
If the cleanup fails, there is nothing we can do.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/stack_test.c

index d628420e63a81a967a8b669d612a86c3a46081f3..4b7292945c38379261bc0e7754d234f1b3d8c2bc 100644 (file)
@@ -89,7 +89,7 @@ static void test_read_file(void)
                EXPECT(0 == strcmp(want[i], names[i]));
        }
        free_names(names);
-       remove(fn);
+       (void) remove(fn);
 }
 
 static void test_parse_names(void)