Port pdumper.c maybe_unused to C2x
Port pdumper.c to C2x, and pacify gcc 11.2.1 -Wattributes -Wunused. * src/pdumper.c (dump_tailq_prepend): Omit ATTRIBUTE_UNUSED, since it’s always used. (dump_tailq_append): Remove; unused.
This commit is contained in:
parent
6d9b3c0eaa
commit
2a00634880
1 changed files with 1 additions and 19 deletions
|
@ -799,7 +799,7 @@ dump_tailq_length (const struct dump_tailq *tailq)
|
||||||
return tailq->length;
|
return tailq->length;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ATTRIBUTE_UNUSED
|
static void
|
||||||
dump_tailq_prepend (struct dump_tailq *tailq, Lisp_Object value)
|
dump_tailq_prepend (struct dump_tailq *tailq, Lisp_Object value)
|
||||||
{
|
{
|
||||||
Lisp_Object link = Fcons (value, tailq->head);
|
Lisp_Object link = Fcons (value, tailq->head);
|
||||||
|
@ -809,24 +809,6 @@ dump_tailq_prepend (struct dump_tailq *tailq, Lisp_Object value)
|
||||||
tailq->length += 1;
|
tailq->length += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ATTRIBUTE_UNUSED
|
|
||||||
dump_tailq_append (struct dump_tailq *tailq, Lisp_Object value)
|
|
||||||
{
|
|
||||||
Lisp_Object link = Fcons (value, Qnil);
|
|
||||||
if (NILP (tailq->head))
|
|
||||||
{
|
|
||||||
eassert (NILP (tailq->tail));
|
|
||||||
tailq->head = tailq->tail = link;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
eassert (!NILP (tailq->tail));
|
|
||||||
XSETCDR (tailq->tail, link);
|
|
||||||
tailq->tail = link;
|
|
||||||
}
|
|
||||||
tailq->length += 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
dump_tailq_empty_p (struct dump_tailq *tailq)
|
dump_tailq_empty_p (struct dump_tailq *tailq)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue