mirror of
https://github.com/git/git.git
synced 2024-11-23 09:56:28 +08: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:
parent
bdc71b43ee
commit
4350676cdd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user