diff options
| author | Jeff King <peff@peff.net> | 2023-02-24 01:39:24 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 09:13:31 -0800 |
| commit | be252d3349f1a5fdf7aaf53390f3ce555b5de9d9 (patch) | |
| tree | cbab0651cb209f42533cf15cd5a738eac71c617b /object-file.c | |
| parent | c50dca2a18077306eb6796938d3d01c76590b4c6 (diff) | |
| download | git-be252d3349f1a5fdf7aaf53390f3ce555b5de9d9.tar.gz | |
for_each_object: mark unused callback parameters
The for_each_{loose,packed}_object interface uses callback functions,
but not every callback needs all of the parameters. Mark the unused ones
to satisfy -Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.c')
| -rw-r--r-- | object-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c index 939865c1ae..389d452e48 100644 --- a/object-file.c +++ b/object-file.c @@ -2644,7 +2644,8 @@ int for_each_loose_object(each_loose_object_fn cb, void *data, return 0; } -static int append_loose_object(const struct object_id *oid, const char *path, +static int append_loose_object(const struct object_id *oid, + const char *path UNUSED, void *data) { oidtree_insert(data, oid); |
