mirror of
https://github.com/git/git
synced 2024-11-05 01:58:18 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue