refs: mark unused virtual method parameters
The refs code uses various polymorphic types (e.g., loose vs packed ref_stores, abstracted iterators). Not every virtual function or callback needs all of its parameters. Let's mark the unused ones to quiet -Wunused-parameter. 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
c006e9fa59
commit
7718827a2d
@ -51,8 +51,8 @@ static int empty_ref_iterator_advance(struct ref_iterator *ref_iterator)
|
||||
return ref_iterator_abort(ref_iterator);
|
||||
}
|
||||
|
||||
static int empty_ref_iterator_peel(struct ref_iterator *ref_iterator,
|
||||
struct object_id *peeled)
|
||||
static int empty_ref_iterator_peel(struct ref_iterator *UNUSED(ref_iterator),
|
||||
struct object_id *UNUSED(peeled))
|
||||
{
|
||||
BUG("peel called for empty iterator");
|
||||
}
|
||||
@ -238,7 +238,7 @@ struct ref_iterator *merge_ref_iterator_begin(
|
||||
*/
|
||||
static enum iterator_selection overlay_iterator_select(
|
||||
struct ref_iterator *front, struct ref_iterator *back,
|
||||
void *cb_data)
|
||||
void *UNUSED(cb_data))
|
||||
{
|
||||
int cmp;
|
||||
|
||||
|
Reference in New Issue
Block a user