Skip to content

Commit 1e6459e

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4c7b06f commit 1e6459e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/rev-parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static int anti_reference(const char *refname, const struct object_id *oid,
226226
return 0;
227227
}
228228

229-
static int show_abbrev(const struct object_id *oid, void *cb_data)
229+
static int show_abbrev(const struct object_id *oid, void *cb_data UNUSED)
230230
{
231231
show_rev(NORMAL, oid, NULL);
232232
return 0;

0 commit comments

Comments
 (0)