Skip to content

Commit fd3fe49

Browse files
peffgitster
authored andcommitted
bundle-uri: mark unused parameters in callbacks
The first hunk is similar to 02c3c59 (hashmap: mark unused callback parameters, 2022-08-19), but was added after that commit. The other two are used with for_all_bundles_in_list(), but don't use their void data pointer. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ccf759c commit fd3fe49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bundle-uri.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static struct {
2020
{ BUNDLE_HEURISTIC_CREATIONTOKEN, "creationToken" },
2121
};
2222

23-
static int compare_bundles(const void *hashmap_cmp_fn_data,
23+
static int compare_bundles(const void *hashmap_cmp_fn_data UNUSED,
2424
const struct hashmap_entry *he1,
2525
const struct hashmap_entry *he2,
2626
const void *id)
@@ -45,7 +45,7 @@ void init_bundle_list(struct bundle_list *list)
4545
}
4646

4747
static int clear_remote_bundle_info(struct remote_bundle_info *bundle,
48-
void *data)
48+
void *data UNUSED)
4949
{
5050
FREE_AND_NULL(bundle->id);
5151
FREE_AND_NULL(bundle->uri);
@@ -779,7 +779,7 @@ static int unbundle_all_bundles(struct repository *r,
779779
return 0;
780780
}
781781

782-
static int unlink_bundle(struct remote_bundle_info *info, void *data)
782+
static int unlink_bundle(struct remote_bundle_info *info, void *data UNUSED)
783783
{
784784
if (info->file)
785785
unlink_or_warn(info->file);

0 commit comments

Comments
 (0)