diff options
| author | Jeff King <peff@peff.net> | 2022-10-17 21:05:32 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-10-17 21:24:04 -0700 |
| commit | 1ee347104576c8a2681edd79ed8328791f0677d2 (patch) | |
| tree | 550d2854f0b1e0467f435d12cdf6d0d3423cdf93 /string-list.c | |
| parent | object-file: mark unused parameters in hash_unknown functions (diff) | |
| download | git-1ee347104576c8a2681edd79ed8328791f0677d2.tar.gz git-1ee347104576c8a2681edd79ed8328791f0677d2.zip | |
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>
Diffstat (limited to 'string-list.c')
| -rw-r--r-- | string-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string-list.c b/string-list.c index 549fc416d6..42bacaec55 100644 --- a/string-list.c +++ b/string-list.c @@ -156,7 +156,7 @@ void filter_string_list(struct string_list *list, int free_util, list->nr = dst; } -static int item_is_not_empty(struct string_list_item *item, void *unused) +static int item_is_not_empty(struct string_list_item *item, void *data UNUSED) { return *item->string != '\0'; } |
