From: Jeff King Date: Fri, 19 Aug 2022 10:08:42 +0000 (-0400) Subject: streaming: mark unused virtual method parameters X-Git-Tag: v2.38.0-rc0~10^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f5a9de7c83cac4bd6397eafaa6e39dad7a77032;p=thirdparty%2Fgit.git streaming: mark unused virtual method parameters Streaming "open" functions need to conform to the same virtual function interface, but not every implementation needs every parameter. Mark the unused ones as such to appease -Wunused-parameter. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/streaming.c b/streaming.c index fe54665d86..4b34e2a748 100644 --- a/streaming.c +++ b/streaming.c @@ -328,9 +328,9 @@ static int close_istream_pack_non_delta(struct git_istream *st) } static int open_istream_pack_non_delta(struct git_istream *st, - struct repository *r, - const struct object_id *oid, - enum object_type *type) + struct repository *UNUSED(r), + const struct object_id *UNUSED(oid), + enum object_type *UNUSED(type)) { struct pack_window *window; enum object_type in_pack_type;