[ox/std] Add maybe_unused to assert check in test to allow release builds

This commit is contained in:
Gary Talent 2019-02-25 21:50:52 -06:00
parent 6ddd44828b
commit dc3fe3c18e

View File

@ -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");