diff mbox series

[v2,12/22] grep: mark unused parameter in output function

Message ID 20230829234527.GJ227214@coredump.intra.peff.net (mailing list archive)
State Accepted
Commit bcba446228eec5dd371137c141e7ed83cc4caee3
Headers show
Series Yet Another Unused Parameter Series | expand

Commit Message

Jeff King Aug. 29, 2023, 11:45 p.m. UTC
This is a callback used with grep_options.output, but we don't look at
the grep_opt parameter, as we're just writing the output to stdout.

Signed-off-by: Jeff King <peff@peff.net>
---
 grep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/grep.c b/grep.c
index 0904d55b24..0124eb1960 100644
--- a/grep.c
+++ b/grep.c
@@ -17,7 +17,7 @@  static int grep_source_load(struct grep_source *gs);
 static int grep_source_is_binary(struct grep_source *gs,
 				 struct index_state *istate);
 
-static void std_output(struct grep_opt *opt, const void *buf, size_t size)
+static void std_output(struct grep_opt *opt UNUSED, const void *buf, size_t size)
 {
 	fwrite(buf, size, 1, stdout);
 }