aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-07 12:33:31 -0700
committerbunnei <bunneidev@gmail.com>2021-12-06 16:39:17 -0800
commita3dd417cbff109b7fa4bb7d922d0b663a8de4dcb (patch)
treed0613a3bcf90a4903ea0b9d8343fea0d99ff8552 /src/core/hle/kernel
parent6fd0256f77552dc6eb3693d183a51893109dac3c (diff)
core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h
index a149744c8f..8bbf66c526 100644
--- a/src/core/hle/kernel/k_thread.h
+++ b/src/core/hle/kernel/k_thread.h
@@ -773,7 +773,7 @@ public:
class KScopedDisableDispatch {
public:
- explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
+ [[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
GetCurrentThread(kernel).DisableDispatch();
}