diff options
author | Jeff King <peff@peff.net> | 2024-08-17 10:23:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-17 18:46:12 +0200 |
commit | df9d638c24562707d18f0ac1836abc99c8541176 (patch) | |
tree | 56507988e6b1ffaceb1c25133f6ffa24e8f03189 /t/unit-tests/t-trailer.c | |
parent | t/helper: mark more unused argv/argc arguments (diff) | |
download | git-df9d638c24562707d18f0ac1836abc99c8541176.tar.xz git-df9d638c24562707d18f0ac1836abc99c8541176.zip |
unit-tests: ignore unused argc/argv
All of the unit test programs have their own cmd_main() function, but
none of them actually look at the argc/argv that is passed in.
In the long run we may want them to handle options for the test harness.
But we'd probably do that with a shared harness cmd_main(), dispatching
to the individual tests. In the meantime, let's annotate the unused
parameters to avoid triggering -Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | t/unit-tests/t-trailer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/unit-tests/t-trailer.c b/t/unit-tests/t-trailer.c index 2ecca359d9..e1c6ad7461 100644 --- a/t/unit-tests/t-trailer.c +++ b/t/unit-tests/t-trailer.c @@ -308,7 +308,7 @@ static void run_t_trailer_iterator(void) } } -int cmd_main(int argc, const char **argv) +int cmd_main(int argc UNUSED, const char **argv UNUSED) { run_t_trailer_iterator(); return test_done(); |