{"thread":{"id":"62014","subject":"[PATCH] t-reftable-block: mark unused argv/argc","startedAt":"2024-08-28T04:08:04Z","lastAt":"2024-08-28T04:08:04Z","messageCount":1,"participants":["Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"501751","messageId":"20240828040803.GA4004932@coredump.intra.peff.net","threadId":"62014","inReplyTo":null,"subject":"[PATCH] t-reftable-block: mark unused argv/argc","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2024-08-28T04:08:03Z","receivedAt":"2024-08-28T04:08:04Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"This is conceptually the same as the cases in df9d638c24 (unit-tests:\nignore unused argc/argv, 2024-08-17), but this unit test was migrated\nfrom the reftable tests in a parallel branch.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\nThis should go on top of cp/unit-test-reftable-block. It could also be\ndone as an evil merge when we merge with the final unused-parameter\ntopic, but I think doing it this way is less confusing.\n\n t/unit-tests/t-reftable-block.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/unit-tests/t-reftable-block.c b/t/unit-tests/t-reftable-block.c\nindex 582a8e6036..f0124fc3d0 100644\n--- a/t/unit-tests/t-reftable-block.c\n+++ b/t/unit-tests/t-reftable-block.c\n@@ -359,7 +359,7 @@ static void t_index_block_read_write(void)\n \t\treftable_record_release(&recs[i]);\n }\n \n-int cmd_main(int argc, const char *argv[])\n+int cmd_main(int argc UNUSED, const char *argv[] UNUSED)\n {\n \tTEST(t_index_block_read_write(), \"read-write operations on index blocks work\");\n \tTEST(t_log_block_read_write(), \"read-write operations on log blocks work\");\n-- \n2.46.0.754.g24c813f009\n"}]}