diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-04-06 13:38:28 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-04-06 13:38:28 -0700 |
| commit | 955abf5f72617f6044fdadeeaee7e9b78735340a (patch) | |
| tree | d3a9fcf9cb14ef496f65a4f16938699b87f14414 /t/helper/test-xml-encode.c | |
| parent | Merge branch 'jk/unused-post-2.40' (diff) | |
| parent | parse-options: drop parse_opt_unknown_cb() (diff) | |
| download | git-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-xml-encode.c')
| -rw-r--r-- | t/helper/test-xml-encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-xml-encode.c b/t/helper/test-xml-encode.c index a648bbd961..b2f330d1a4 100644 --- a/t/helper/test-xml-encode.c +++ b/t/helper/test-xml-encode.c @@ -6,7 +6,7 @@ static const char *utf8_replace_character = "�"; * Encodes (possibly incorrect) UTF-8 on <stdin> to <stdout>, to be embedded * in an XML file. */ -int cmd__xml_encode(int argc, const char **argv) +int cmd__xml_encode(int argc UNUSED, const char **argv UNUSED) { unsigned char buf[1024], tmp[4], *tmp2 = NULL; ssize_t cur = 0, len = 1, remaining = 0; |
