[PATCH 12/14] rev-parse: mark unused parameter in for_each_abbrev callback
- From
Jeff King <peff@peff.net>
- Date
- Jul 3, 2023, 06:44 UTC
- Message-ID
- <20230703064431.GL3537614@coredump.intra.peff.net>
- In-Reply-To
- <20230703064347.GA3524892@coredump.intra.peff.net>
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> --- builtin/rev-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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;
-- 2.41.0.586.g3c0cc15bc7