]> git.ipfire.org Git - thirdparty/git.git/commitdiff
rev-parse: mark unused parameter in for_each_abbrev callback
authorJeff King <peff@peff.net>
Mon, 3 Jul 2023 06:44:31 +0000 (02:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jul 2023 00:24:00 +0000 (17:24 -0700)
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>
builtin/rev-parse.c

index 3e2ee44177cd874fc918e961dc3a5306686103d0..075e2c5aa49364bb6fe93865a4027ef3f3a07298 100644 (file)
@@ -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;