ソースを参照

core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard.

bunnei 5 年 前
コミット
d14b8fc747
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/core/hle/kernel/k_thread.h

+ 1 - 1
src/core/hle/kernel/k_thread.h

@@ -773,7 +773,7 @@ public:
 
 
 class KScopedDisableDispatch {
 class KScopedDisableDispatch {
 public:
 public:
-    explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
+    [[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
         GetCurrentThread(kernel).DisableDispatch();
         GetCurrentThread(kernel).DisableDispatch();
     }
     }