From a66fad2d28f362cd0f91f13d98a7ddb8bc599c3e Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sat, 17 Aug 2024 04:23:29 -0400 Subject: reftable: ignore unused argc/argv in test functions There are several reftable test "main" functions that don't look at their argc/argv. They don't technically need to take these parameters, as they are called individually by cmd__reftable(). But it probably makes sense to keep them all consistent for now. In the long run these will probably all get converted to the unit-test framework anyway. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- reftable/readwrite_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reftable/readwrite_test.c') diff --git a/reftable/readwrite_test.c b/reftable/readwrite_test.c index f411abfe9c..15a113b78a 100644 --- a/reftable/readwrite_test.c +++ b/reftable/readwrite_test.c @@ -951,7 +951,7 @@ static void test_corrupt_table(void) strbuf_release(&buf); } -int readwrite_test_main(int argc, const char *argv[]) +int readwrite_test_main(int argc UNUSED, const char *argv[] UNUSED) { RUN_TEST(test_log_zlib_corruption); RUN_TEST(test_corrupt_table); -- cgit v1.3