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>
This commit is contained in:
Jeff King
2022-08-19 06:08:35 -04:00
committed by Junio C Hamano
parent 63e14ee2d6
commit c006e9fa59
10 changed files with 55 additions and 32 deletions

View File

@@ -947,9 +947,11 @@ static void wt_longstatus_print_changed(struct wt_status *s)
wt_longstatus_print_trailer(s);
}
static int stash_count_refs(struct object_id *ooid, struct object_id *noid,
const char *email, timestamp_t timestamp, int tz,
const char *message, void *cb_data)
static int stash_count_refs(struct object_id *UNUSED(ooid),
struct object_id *UNUSED(noid),
const char *UNUSED(email),
timestamp_t UNUSED(timestamp), int UNUSED(tz),
const char *UNUSED(message), void *cb_data)
{
int *c = cb_data;
(*c)++;
@@ -1612,8 +1614,10 @@ struct grab_1st_switch_cbdata {
struct object_id noid;
};
static int grab_1st_switch(struct object_id *ooid, struct object_id *noid,
const char *email, timestamp_t timestamp, int tz,
static int grab_1st_switch(struct object_id *UNUSED(ooid),
struct object_id *noid,
const char *UNUSED(email),
timestamp_t UNUSED(timestamp), int UNUSED(tz),
const char *message, void *cb_data)
{
struct grab_1st_switch_cbdata *cb = cb_data;