From 21556ed61d82d233819c115779809a3515ef34b1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 2 Apr 2019 19:54:43 +0100 Subject: Fix tidy warning in test case --- libadhocutil/unittests/testResourcePool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ids; -- cgit v1.2.3