diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-07 07:23:06 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-07 07:23:08 +0200 |
commit | bc30aa82499baea00a4d985f922e489041660ee7 (patch) | |
tree | 46d123dea11c83cb88f30a4cfbf472d1489cf0aa /src | |
parent | k_scheduler: Mark KScopedSchedulerLock as [[nodiscard]] (diff) | |
download | yuzu-bc30aa82499baea00a4d985f922e489041660ee7.tar yuzu-bc30aa82499baea00a4d985f922e489041660ee7.tar.gz yuzu-bc30aa82499baea00a4d985f922e489041660ee7.tar.bz2 yuzu-bc30aa82499baea00a4d985f922e489041660ee7.tar.lz yuzu-bc30aa82499baea00a4d985f922e489041660ee7.tar.xz yuzu-bc30aa82499baea00a4d985f922e489041660ee7.tar.zst yuzu-bc30aa82499baea00a4d985f922e489041660ee7.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/k_scoped_lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_scoped_lock.h b/src/core/hle/kernel/k_scoped_lock.h index d7cc557b2..543555680 100644 --- a/src/core/hle/kernel/k_scoped_lock.h +++ b/src/core/hle/kernel/k_scoped_lock.h @@ -20,7 +20,7 @@ concept KLockable = !std::is_reference_v<T> && requires(T & t) { }; template <typename T> -requires KLockable<T> class KScopedLock { +requires KLockable<T> class [[nodiscard]] KScopedLock { public: explicit KScopedLock(T* l) : lock_ptr(l) { this->lock_ptr->Lock(); |