convert: mark unused parameter in null stream filter
The null stream filter unsurprisingly does not look at its "filter" argument, since it just eats bytes. But we can't drop it, since it has to conform to the same virtual interface that real filters do. Mark the unused parameter to appease -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Oct 17, 2022 at 21:08 UTC
dfd2a238855967035cca3bf1475e542ba2f7823b
1 file changed
+2
-2
convert.c
+2
-2
@@ -1549,7 +1549,7 @@ struct stream_filter {
1549
struct stream_filter_vtbl *vtbl;
1550
};
1551
1552
-static int null_filter_fn(struct stream_filter *filter,
1552
+static int null_filter_fn(struct stream_filter *filter UNUSED,
1553
const char *input, size_t *isize_p,
1554
char *output, size_t *osize_p)
1555
{
@@ -1568,7 +1568,7 @@ static int null_filter_fn(struct stream_filter *filter,
1568
return 0;
1569
}
1570
1571
-static void null_free_fn(struct stream_filter *filter)
1571
+static void null_free_fn(struct stream_filter *filter UNUSED)
1572
{
1573
; /* nothing -- null instances are shared */
1574
}