Skip to content

Commit 9f5a9de

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

streaming.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ static int close_istream_pack_non_delta(struct git_istream *st)
328328
}
329329

330330
static int open_istream_pack_non_delta(struct git_istream *st,
331-
struct repository *r,
332-
const struct object_id *oid,
333-
enum object_type *type)
331+
struct repository *UNUSED(r),
332+
const struct object_id *UNUSED(oid),
333+
enum object_type *UNUSED(type))
334334
{
335335
struct pack_window *window;
336336
enum object_type in_pack_type;

0 commit comments

Comments
 (0)