]> git.ipfire.org Git - thirdparty/git.git/commit - t/helper/test-oidmap.c
t/helper: mark unused argv/argc arguments
authorJeff King <peff@peff.net>
Tue, 28 Mar 2023 20:57:25 +0000 (16:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Mar 2023 21:11:24 +0000 (14:11 -0700)
commit126e3b3d2aa06c58994ed09e12cb0a0008897039
tree0fd6fc68f2d3bf69aa030096db920cb0066bd548
parent6ba21fa65cbdf97aac337a2857f8ffb072dda29c
t/helper: mark unused argv/argc arguments

Many test helper programs do not bother to look at argc or argv, because
they don't take any options. In a user-facing program, it's a good idea
to check for unexpected arguments and complain. But for a test helper,
it's not worth the trouble to enforce this.

But we do want to tell the compiler we're OK with ignoring them, to
silence -Wunused-parameter (and obviously we can't get rid of them,
since we have to conform to the usual cmd__foo() interface).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
27 files changed:
t/helper/test-ctype.c
t/helper/test-date.c
t/helper/test-drop-caches.c
t/helper/test-dump-cache-tree.c
t/helper/test-dump-fsmonitor.c
t/helper/test-dump-split-index.c
t/helper/test-dump-untracked-cache.c
t/helper/test-example-decorate.c
t/helper/test-fsmonitor-client.c
t/helper/test-hexdump.c
t/helper/test-index-version.c
t/helper/test-match-trees.c
t/helper/test-oid-array.c
t/helper/test-oidmap.c
t/helper/test-oidtree.c
t/helper/test-online-cpus.c
t/helper/test-parse-options.c
t/helper/test-prio-queue.c
t/helper/test-read-graph.c
t/helper/test-ref-store.c
t/helper/test-scrap-cache-tree.c
t/helper/test-sigchain.c
t/helper/test-strcmp-offset.c
t/helper/test-submodule-config.c
t/helper/test-submodule.c
t/helper/test-trace2.c
t/helper/test-xml-encode.c