Skip to content

Commit 4350676

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bdc71b4 commit 4350676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oss-fuzz/dummy-cmd-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* executed.
99
*/
1010

11-
int cmd_main(int argc, const char **argv) {
11+
int cmd_main(int argc UNUSED, const char **argv UNUSED) {
1212
BUG("We should not execute cmd_main() from a fuzz target");
1313
return 1;
1414
}

0 commit comments

Comments
 (0)