Commit 74a46788 authored by Max Kellermann's avatar Max Kellermann

util/ConstBuffer: wrap assert() in NDEBUG check

Fixes build failure because assert.h was not included.
parent 7213c267
......@@ -208,7 +208,9 @@ struct ConstBuffer {
* not actually modify the buffer). Buffer must not be empty.
*/
void pop_front() {
#ifndef NDEBUG
assert(!IsEmpty());
#endif
++data;
--size;
......@@ -219,7 +221,9 @@ struct ConstBuffer {
* not actually modify the buffer). Buffer must not be empty.
*/
void pop_back() {
#ifndef NDEBUG
assert(!IsEmpty());
#endif
--size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment