diff options
author | Jeff King <peff@peff.net> | 2023-02-24 07:39:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 18:13:31 +0100 |
commit | be252d3349f1a5fdf7aaf53390f3ce555b5de9d9 (patch) | |
tree | cbab0651cb209f42533cf15cd5a738eac71c617b /diagnose.c | |
parent | list-objects: mark unused callback parameters (diff) | |
download | git-be252d3349f1a5fdf7aaf53390f3ce555b5de9d9.tar.xz git-be252d3349f1a5fdf7aaf53390f3ce555b5de9d9.zip |
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 'diagnose.c')
-rw-r--r-- | diagnose.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/diagnose.c b/diagnose.c index 8f26569896..e7c42b3a71 100644 --- a/diagnose.c +++ b/diagnose.c @@ -43,7 +43,8 @@ int option_parse_diagnose(const struct option *opt, const char *arg, int unset) return error(_("invalid --%s value '%s'"), opt->long_name, arg); } -static void dir_file_stats_objects(const char *full_path, size_t full_path_len, +static void dir_file_stats_objects(const char *full_path, + size_t full_path_len UNUSED, const char *file_name, void *data) { struct strbuf *buf = data; |