aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_queue_priority.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-16 08:07:41 +0200
committerMax Kellermann <max@duempel.org>2011-09-16 09:10:39 +0200
commit7e27d660e245506e60eecc21507258c0a6c33123 (patch)
tree91847e93cfe622e94cb4b641aab6b4340758563e /test/test_queue_priority.c
parent53174ea45fd8690352e93b591d08e68cc82665d9 (diff)
downloadmpd-7e27d660e245506e60eecc21507258c0a6c33123.tar.gz
mpd-7e27d660e245506e60eecc21507258c0a6c33123.tar.xz
mpd-7e27d660e245506e60eecc21507258c0a6c33123.zip
test/test_queue_priority: work around "set but not used" warning
Diffstat (limited to 'test/test_queue_priority.c')
-rw-r--r--test/test_queue_priority.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_queue_priority.c b/test/test_queue_priority.c
index d61b8c8da..a7106a8e9 100644
--- a/test/test_queue_priority.c
+++ b/test/test_queue_priority.c
@@ -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;
}
}