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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2022-08-19 06:08:42 -04:00 committed by Junio C Hamano
parent f7d5741279
commit 9f5a9de7c8

View File

@ -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;