]> git.ipfire.org Git - thirdparty/git.git/commitdiff
reftable: ignore unused argc/argv in test functions
authorJeff King <peff@peff.net>
Sat, 17 Aug 2024 08:23:29 +0000 (04:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 16:46:12 +0000 (09:46 -0700)
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/block_test.c
reftable/readwrite_test.c
reftable/stack_test.c

index 90aecd5a7c6f43c28a485edf8cbd67aad374fbda..f8e31d2d3ce3225d09b5c5d097a6cc6f28bd30a7 100644 (file)
@@ -116,7 +116,7 @@ static void test_block_read_write(void)
        }
 }
 
-int block_test_main(int argc, const char *argv[])
+int block_test_main(int argc UNUSED, const char *argv[] UNUSED)
 {
        RUN_TEST(test_block_read_write);
        return 0;
index f411abfe9cb7367d94d84f23a84d4ad7912e50cd..15a113b78a178fce0bb750edfb41699da4f77994 100644 (file)
@@ -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);
index 8c36590ff0f68ae7f41e1d69d0667a6cda739587..f84b92f31283429b231e3ec6d031489ac1d917c9 100644 (file)
@@ -1084,7 +1084,7 @@ static void test_reftable_stack_compaction_concurrent_clean(void)
        clear_dir(dir);
 }
 
-int stack_test_main(int argc, const char *argv[])
+int stack_test_main(int argc UNUSED, const char *argv[] UNUSED)
 {
        RUN_TEST(test_empty_add);
        RUN_TEST(test_read_file);