test/test_queue_priority: work around "set but not used" warning

This commit is contained in:
Max Kellermann 2011-09-16 08:07:41 +02:00
parent 53174ea45f
commit 7e27d660e2
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ check_descending_priority(G_GNUC_UNUSED const struct queue *queue,
unsigned position = queue_order_to_position(queue, order);
uint8_t priority = queue->items[position].priority;
assert(priority <= last_priority);
(void)last_priority;
last_priority = priority;
}
}