From dc3fe3c18ec3d74197daddfc730ec24d369a004d Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 25 Feb 2019 21:50:52 -0600 Subject: [PATCH] [ox/std] Add maybe_unused to assert check in test to allow release builds --- deps/ox/src/ox/std/test/tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/test/tests.cpp b/deps/ox/src/ox/std/test/tests.cpp index 1d5b8415..0904067e 100644 --- a/deps/ox/src/ox/std/test/tests.cpp +++ b/deps/ox/src/ox/std/test/tests.cpp @@ -42,7 +42,7 @@ map> tests = { [] { ox::Vector v; 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); oxAssert(v.size() == size, "Vector size incorrect"); oxAssert(v[v.size() - 1] == val, "Vector value wrong");