]> git.ipfire.org Git - thirdparty/git.git/commitdiff
streaming: mark unused virtual method parameters
authorJeff King <peff@peff.net>
Fri, 19 Aug 2022 10:08:42 +0000 (06:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 19:18:55 +0000 (12:18 -0700)
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>
streaming.c

index fe54665d86e72a3400a6f60f610a5264bc0f0667..4b34e2a748d339bdcde6fdefb99d2d4921b05e2d 100644 (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;