mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
string-list: mark unused callback parameters
String-lists may be used with callbacks for clearing or iteration. These callbacks need to conform to a particular interface, even though not every callback needs all of its 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>
This commit is contained in:
committed by
Junio C Hamano
parent
9eb6cdadd1
commit
1ee3471045
@@ -55,7 +55,7 @@ static void free_complete_reflog(struct complete_reflogs *array)
|
||||
free(array);
|
||||
}
|
||||
|
||||
static void complete_reflogs_clear(void *util, const char *str)
|
||||
static void complete_reflogs_clear(void *util, const char *str UNUSED)
|
||||
{
|
||||
struct complete_reflogs *array = util;
|
||||
free_complete_reflog(array);
|
||||
|
||||
Reference in New Issue
Block a user