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>
Jeff King committed
Aug 17, 2024 at 04:22 UTC
4350676cddb961261d9cce0327f2995d3103523f
1 file changed
+1
-1
oss-fuzz/dummy-cmd-main.c
+1
-1
@@ -8,7 +8,7 @@
8
* executed.
9
*/
10
11
-int cmd_main(int argc, const char **argv) {
11
+int cmd_main(int argc UNUSED, const char **argv UNUSED) {
12
BUG("We should not execute cmd_main() from a fuzz target");
13
return 1;
14
}