From c006e9fa59c02261738e20890f1aecd78f9db707 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 19 Aug 2022 06:08:35 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- object-name.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'object-name.c') diff --git a/object-name.c b/object-name.c index 052644977e..3f7fce8322 100644 --- a/object-name.c +++ b/object-name.c @@ -1385,8 +1385,11 @@ struct grab_nth_branch_switch_cbdata { struct strbuf *sb; }; -static int grab_nth_branch_switch(struct object_id *ooid, struct object_id *noid, - const char *email, timestamp_t timestamp, int tz, +static int grab_nth_branch_switch(struct object_id *UNUSED(ooid), + struct object_id *UNUSED(noid), + const char *UNUSED(email), + timestamp_t UNUSED(timestamp), + int UNUSED(tz), const char *message, void *cb_data) { struct grab_nth_branch_switch_cbdata *cb = cb_data; -- cgit v1.2.3