aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-parse-options.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-06 13:38:28 -0700
committerJunio C Hamano <gitster@pobox.com>2023-04-06 13:38:28 -0700
commit955abf5f72617f6044fdadeeaee7e9b78735340a (patch)
treed3a9fcf9cb14ef496f65a4f16938699b87f14414 /t/helper/test-parse-options.c
parentMerge branch 'jk/unused-post-2.40' (diff)
parentparse-options: drop parse_opt_unknown_cb() (diff)
downloadgit-955abf5f72617f6044fdadeeaee7e9b78735340a.tar.gz
git-955abf5f72617f6044fdadeeaee7e9b78735340a.zip
Merge branch 'jk/unused-post-2.40-part2'
Code clean-up for "-Wunused-parameter" build. * jk/unused-post-2.40-part2: parse-options: drop parse_opt_unknown_cb() t/helper: mark unused argv/argc arguments mark "argv" as unused when we check argc builtins: mark unused prefix parameters builtins: annotate always-empty prefix parameters builtins: always pass prefix to parse_options() fast-import: fix file access when run from subdir
Diffstat (limited to 't/helper/test-parse-options.c')
-rw-r--r--t/helper/test-parse-options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c
index 506835521a..b66039e575 100644
--- a/t/helper/test-parse-options.c
+++ b/t/helper/test-parse-options.c
@@ -263,14 +263,14 @@ int cmd__parse_options_flags(int argc, const char **argv)
return parse_options_flags__cmd(argc, argv, test_flags);
}
-static int subcmd_one(int argc, const char **argv, const char *prefix)
+static int subcmd_one(int argc, const char **argv, const char *prefix UNUSED)
{
printf("fn: subcmd_one\n");
print_args(argc, argv);
return 0;
}
-static int subcmd_two(int argc, const char **argv, const char *prefix)
+static int subcmd_two(int argc, const char **argv, const char *prefix UNUSED)
{
printf("fn: subcmd_two\n");
print_args(argc, argv);