Skip to content

Commit a66fad2

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent df9d638 commit a66fad2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

reftable/block_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void test_block_read_write(void)
116116
}
117117
}
118118

119-
int block_test_main(int argc, const char *argv[])
119+
int block_test_main(int argc UNUSED, const char *argv[] UNUSED)
120120
{
121121
RUN_TEST(test_block_read_write);
122122
return 0;

reftable/readwrite_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ static void test_corrupt_table(void)
951951
strbuf_release(&buf);
952952
}
953953

954-
int readwrite_test_main(int argc, const char *argv[])
954+
int readwrite_test_main(int argc UNUSED, const char *argv[] UNUSED)
955955
{
956956
RUN_TEST(test_log_zlib_corruption);
957957
RUN_TEST(test_corrupt_table);

reftable/stack_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ static void test_reftable_stack_compaction_concurrent_clean(void)
10841084
clear_dir(dir);
10851085
}
10861086

1087-
int stack_test_main(int argc, const char *argv[])
1087+
int stack_test_main(int argc UNUSED, const char *argv[] UNUSED)
10881088
{
10891089
RUN_TEST(test_empty_add);
10901090
RUN_TEST(test_read_file);

0 commit comments

Comments
 (0)