1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-28 04:49:43 +01:00

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>
This commit is contained in:
Jeff King 2024-08-17 04:22:38 -04:00 committed by Junio C Hamano
parent bdc71b43ee
commit 4350676cdd

View file

@ -8,7 +8,7 @@
* executed. * 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"); BUG("We should not execute cmd_main() from a fuzz target");
return 1; return 1;
} }