grep: mark unused parameter in output function
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Aug 29, 2023 at 19:45 UTC
bcba446228eec5dd371137c141e7ed83cc4caee3
1 file changed
+1
-1
grep.c
+1
-1
@@ -17,7 +17,7 @@ static int grep_source_load(struct grep_source *gs);
17
static int grep_source_is_binary(struct grep_source *gs,
18
struct index_state *istate);
19
20
-static void std_output(struct grep_opt *opt, const void *buf, size_t size)
20
+static void std_output(struct grep_opt *opt UNUSED, const void *buf, size_t size)
21
{
22
fwrite(buf, size, 1, stdout);
23
}