summaryrefslogtreecommitdiffstats
path: root/oss-fuzz
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-08-17 10:22:38 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-17 18:46:11 +0200
commit4350676cddb961261d9cce0327f2995d3103523f (patch)
treee135a939901cef68bffe289afc6a09e1c2424ede /oss-fuzz
parentrefs: mark unused parameters in do_for_each_reflog_helper() (diff)
downloadgit-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.c2
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;
}