Skip to contentSkip to conversation

t-reftable-block: mark unused argv/argc

PATCH New Jeff King 1 participant 1 message Aug 28, 2024

lore
Share & tools
lore

Jeff King

author
#0 lore raw

PATCH 1/1 t-reftable-block: mark unused argv/argc

This is conceptually the same as the cases in df9d638c24 (unit-tests:
ignore unused argc/argv, 2024-08-17), but this unit test was migrated from the reftable tests in a parallel branch.

---
This should go on top of cp/unit-test-reftable-block. It could also be done as an evil merge when we merge with the final unused-parameter topic, but I think doing it this way is less confusing.

 t/unit-tests/t-reftable-block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/unit-tests/t-reftable-block.c +1 -1
index 582a8e6036..f0124fc3d0 100644
@@ -359,7 +359,7 @@ static void t_index_block_read_write(void)
 		reftable_record_release(&recs[i]);
 }
 
-int cmd_main(int argc, const char *argv[])
+int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
 {
 	TEST(t_index_block_read_write(), "read-write operations on index blocks work");
 	TEST(t_log_block_read_write(), "read-write operations on log blocks work");
Signature · 1 line
2.46.0.754.g24c813f009