[ox/std] Add maybe_unused to assert check in test to allow release builds
This commit is contained in:
parent
6ddd44828b
commit
dc3fe3c18e
2
deps/ox/src/ox/std/test/tests.cpp
vendored
2
deps/ox/src/ox/std/test/tests.cpp
vendored
@ -42,7 +42,7 @@ map<string, function<int()>> tests = {
|
|||||||
[] {
|
[] {
|
||||||
ox::Vector<int> v;
|
ox::Vector<int> v;
|
||||||
oxAssert(v.size() == 0, "Initial Vector size not 0");
|
oxAssert(v.size() == 0, "Initial Vector size not 0");
|
||||||
auto insertTest = [&v](int val, std::size_t size) {
|
auto insertTest = [&v](int val, [[maybe_unused]] std::size_t size) {
|
||||||
v.push_back(val);
|
v.push_back(val);
|
||||||
oxAssert(v.size() == size, "Vector size incorrect");
|
oxAssert(v.size() == size, "Vector size incorrect");
|
||||||
oxAssert(v[v.size() - 1] == val, "Vector value wrong");
|
oxAssert(v[v.size() - 1] == val, "Vector value wrong");
|
||||||
|
Loading…
Reference in New Issue
Block a user