]> git.ipfire.org Git - thirdparty/git.git/commitdiff
oss-fuzz: mark unused argv/argc argument
authorJeff King <peff@peff.net>
Sat, 17 Aug 2024 08:22:38 +0000 (04:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 16:46:11 +0000 (09:46 -0700)
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>
oss-fuzz/dummy-cmd-main.c

index 071cb231ba92e3db4e1c3396b6ef09ba17ca8dce..8ef776d06f490c1e934bd3486a54ec74e9b044c0 100644 (file)
@@ -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;
 }