ref-filter: mark unused parameters in parser callbacks
These are similar to the cases annotated in 5fe9e1ce2f (ref-filter: mark unused callback parameters, 2023-02-24), but were added after that commit. Note that the ahead/behind callback ignores its "atom" parameter, which is a little unusual, since that struct usually stores the result. But in this case, the data is stored centrally in ref_array->counts, since we want to compute all ahead/behinds at once, not per ref. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Aug 29, 2023 at 19:45 UTC
29c9f2c3664d30189f5dc04e44c13287176ca260
1 file changed
+5
-3
ref-filter.c
+5
-3
@@ -549,7 +549,8 @@ static int signature_atom_parser(struct ref_format *format UNUSED,
549
return 0;
550
}
551
552
-static int trailers_atom_parser(struct ref_format *format, struct used_atom *atom,
552
+static int trailers_atom_parser(struct ref_format *format UNUSED,
553
+ struct used_atom *atom,
554
const char *arg, struct strbuf *err)
555
{
556
atom->u.contents.trailer_opts.no_divider = 1;
@@ -819,7 +820,7 @@ static int if_atom_parser(struct ref_format *format UNUSED,
820
return 0;
821
}
822
822
-static int rest_atom_parser(struct ref_format *format,
823
+static int rest_atom_parser(struct ref_format *format UNUSED,
824
struct used_atom *atom UNUSED,
825
const char *arg, struct strbuf *err)
826
{
@@ -828,7 +829,8 @@ static int rest_atom_parser(struct ref_format *format,
829
return 0;
830
}
831
831
-static int ahead_behind_atom_parser(struct ref_format *format, struct used_atom *atom,
832
+static int ahead_behind_atom_parser(struct ref_format *format,
833
+ struct used_atom *atom UNUSED,
834
const char *arg, struct strbuf *err)
835
{
836
struct string_list_item *item;