diff options
author | Jeff King <peff@peff.net> | 2022-08-19 12:08:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-19 21:18:54 +0200 |
commit | c006e9fa59c02261738e20890f1aecd78f9db707 (patch) | |
tree | a4cf31a2702cc2221c8093e32495fde1a4e47d97 /commit.c | |
parent | refs: mark unused each_ref_fn parameters (diff) | |
download | git-c006e9fa59c02261738e20890f1aecd78f9db707.tar.xz git-c006e9fa59c02261738e20890f1aecd78f9db707.zip |
refs: mark unused reflog callback parameters
Functions used with for_each_reflog_ent() need to conform to a
particular interface, but not every function needs all of the
parameters. Mark the unused ones to make -Wunused-parameter happy.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r-- | commit.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -951,8 +951,9 @@ static void add_one_commit(struct object_id *oid, struct rev_collect *revs) } static int collect_one_reflog_ent(struct object_id *ooid, struct object_id *noid, - const char *ident, timestamp_t timestamp, - int tz, const char *message, void *cbdata) + const char *UNUSED(ident), + timestamp_t UNUSED(timestamp), int UNUSED(tz), + const char *UNUSED(message), void *cbdata) { struct rev_collect *revs = cbdata; |