mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
constVariablePointer
This commit is contained in:
@@ -167,7 +167,7 @@ void pushQueueNoMerge(struct mq * restrict q, u32 e, s64a loc) {
|
||||
// We assert that the event is different from its predecessor. If it's a
|
||||
// dupe, you should have used the ordinary pushQueue call.
|
||||
if (q->end) {
|
||||
UNUSED struct mq_item *prev = &q->items[q->end - 1];
|
||||
UNUSED const struct mq_item *prev = &q->items[q->end - 1];
|
||||
assert(prev->type != e || prev->location != loc);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user