diff options
| author | Jeff King <peff@peff.net> | 2023-07-03 02:44:31 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-07-13 17:24:00 -0700 |
| commit | 1e6459efcaaf9d0bffba59fd0bc0c44d0731dd65 (patch) | |
| tree | 9237e8ab1b69b460b135463b272650135c4e3f16 /builtin/rev-parse.c | |
| parent | replace: mark unused parameter in each_mergetag_fn callback (diff) | |
| download | git-1e6459efcaaf9d0bffba59fd0bc0c44d0731dd65.tar.gz git-1e6459efcaaf9d0bffba59fd0bc0c44d0731dd65.zip | |
rev-parse: mark unused parameter in for_each_abbrev callback
We don't need to use the "data" parameter in this instance. Let's mark
it to avoid -Wunused-parameter warnings.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-parse.c')
| -rw-r--r-- | builtin/rev-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c index 3e2ee44177..075e2c5aa4 100644 --- a/builtin/rev-parse.c +++ b/builtin/rev-parse.c @@ -226,7 +226,7 @@ static int anti_reference(const char *refname, const struct object_id *oid, return 0; } -static int show_abbrev(const struct object_id *oid, void *cb_data) +static int show_abbrev(const struct object_id *oid, void *cb_data UNUSED) { show_rev(NORMAL, oid, NULL); return 0; |
