Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-08-19 13:08:42 +0300
committerJunio C Hamano <gitster@pobox.com>2022-08-19 22:18:55 +0300
commit9f5a9de7c83cac4bd6397eafaa6e39dad7a77032 (patch)
tree6d88c8c58fe399b267c455a2a694f7e87906630e /streaming.c
parentf7d5741279ce8406a274f9de8ef4eeff5ca3f149 (diff)
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>
Diffstat (limited to 'streaming.c')
-rw-r--r--streaming.c6
1 files changed, 3 insertions, 3 deletions
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;