Skip to content

Commit dfd2a23

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7506535 commit dfd2a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ struct stream_filter {
15491549
struct stream_filter_vtbl *vtbl;
15501550
};
15511551

1552-
static int null_filter_fn(struct stream_filter *filter,
1552+
static int null_filter_fn(struct stream_filter *filter UNUSED,
15531553
const char *input, size_t *isize_p,
15541554
char *output, size_t *osize_p)
15551555
{
@@ -1568,7 +1568,7 @@ static int null_filter_fn(struct stream_filter *filter,
15681568
return 0;
15691569
}
15701570

1571-
static void null_free_fn(struct stream_filter *filter)
1571+
static void null_free_fn(struct stream_filter *filter UNUSED)
15721572
{
15731573
; /* nothing -- null instances are shared */
15741574
}

0 commit comments

Comments
 (0)