diff options
-rw-r--r-- | libadhocutil/unittests/testResourcePool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libadhocutil/unittests/testResourcePool.cpp b/libadhocutil/unittests/testResourcePool.cpp index ae3e322..ec8bd71 100644 --- a/libadhocutil/unittests/testResourcePool.cpp +++ b/libadhocutil/unittests/testResourcePool.cpp @@ -13,7 +13,7 @@ class MockResource { void operator=(const MockResource &) = delete; void operator=(MockResource &&) = delete; - bool valid() const { return true; } + [[ nodiscard ]] bool valid() const { return true; } const unsigned int id; static std::atomic<unsigned int> ids; |