diff options
| author | Jeff King <peff@peff.net> | 2024-08-17 04:23:29 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-17 09:46:12 -0700 |
| commit | a66fad2d28f362cd0f91f13d98a7ddb8bc599c3e (patch) | |
| tree | 794b45dfc0944a9b2700853a7369bd3fa397d6ff /reftable/stack_test.c | |
| parent | df9d638c24562707d18f0ac1836abc99c8541176 (diff) | |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/stack_test.c')
| -rw-r--r-- | reftable/stack_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/stack_test.c b/reftable/stack_test.c index 8c36590ff0..f84b92f312 100644 --- a/reftable/stack_test.c +++ b/reftable/stack_test.c @@ -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); |
