diff --git a/core/os/mutex.h b/core/os/mutex.h index 4b0d81e0c1..0727a79623 100644 --- a/core/os/mutex.h +++ b/core/os/mutex.h @@ -69,7 +69,7 @@ public: }; template -class MutexLock { +class [[nodiscard]] MutexLock { mutable THREADING_NAMESPACE::unique_lock lock; public: @@ -114,7 +114,7 @@ public: }; template -class MutexLock { +class [[nodiscard]] MutexLock { public: MutexLock(const MutexT &p_mutex) {}