diff options
author | Jeff King <peff@peff.net> | 2024-08-17 10:22:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-17 18:46:11 +0200 |
commit | 4350676cddb961261d9cce0327f2995d3103523f (patch) | |
tree | e135a939901cef68bffe289afc6a09e1c2424ede /oss-fuzz | |
parent | refs: mark unused parameters in do_for_each_reflog_helper() (diff) | |
download | git-4350676cddb961261d9cce0327f2995d3103523f.tar.xz git-4350676cddb961261d9cce0327f2995d3103523f.zip |
oss-fuzz: mark unused argv/argc argument
The dummy fuzz cmd_main() does not look at its argc/argv parameters
(since it should never even be run), but has to match the usual
cmd_main() declaration.
Mark them to silence -Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'oss-fuzz')
-rw-r--r-- | oss-fuzz/dummy-cmd-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oss-fuzz/dummy-cmd-main.c b/oss-fuzz/dummy-cmd-main.c index 071cb231ba..8ef776d06f 100644 --- a/oss-fuzz/dummy-cmd-main.c +++ b/oss-fuzz/dummy-cmd-main.c @@ -8,7 +8,7 @@ * executed. */ -int cmd_main(int argc, const char **argv) { +int cmd_main(int argc UNUSED, const char **argv UNUSED) { BUG("We should not execute cmd_main() from a fuzz target"); return 1; } |