diff options
author | Jeff King <peff@peff.net> | 2022-08-19 06:08:35 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-19 12:18:54 -0700 |
commit | c006e9fa59c02261738e20890f1aecd78f9db707 (patch) | |
tree | a4cf31a2702cc2221c8093e32495fde1a4e47d97 /builtin/stash.c | |
parent | 63e14ee2d69b58eae72e34df81f2cde145427037 (diff) | |
download | git-c006e9fa59c02261738e20890f1aecd78f9db707.tar.gz |
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 'builtin/stash.c')
-rw-r--r-- | builtin/stash.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/builtin/stash.c b/builtin/stash.c index 30fa101460..a741b920b3 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -638,9 +638,12 @@ cleanup: return ret; } -static int reject_reflog_ent(struct object_id *ooid, struct object_id *noid, - const char *email, timestamp_t timestamp, int tz, - const char *message, void *cb_data) +static int reject_reflog_ent(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 *UNUSED(cb_data)) { return 1; } |