]> git.ipfire.org Git - thirdparty/git.git/commit
unit-tests: ignore unused argc/argv
authorJeff King <peff@peff.net>
Sat, 17 Aug 2024 08:23:09 +0000 (04:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 16:46:12 +0000 (09:46 -0700)
commitdf9d638c24562707d18f0ac1836abc99c8541176
tree56507988e6b1ffaceb1c25133f6ffa24e8f03189
parent7046c85cceb2d28124ce2229242e9fef7a63f4f0
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>
13 files changed:
t/unit-tests/t-ctype.c
t/unit-tests/t-hash.c
t/unit-tests/t-mem-pool.c
t/unit-tests/t-prio-queue.c
t/unit-tests/t-reftable-basics.c
t/unit-tests/t-reftable-merged.c
t/unit-tests/t-reftable-pq.c
t/unit-tests/t-reftable-record.c
t/unit-tests/t-reftable-tree.c
t/unit-tests/t-strbuf.c
t/unit-tests/t-strcmp-offset.c
t/unit-tests/t-strvec.c
t/unit-tests/t-trailer.c