mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
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:
parent
f7d5741279
commit
9f5a9de7c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user