Browse Source

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

bunnei 5 năm trước cách đây
mục cha
commit
5060a97210
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {
 public:
-    explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
+    [[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
         GetCurrentThread(kernel).DisableDispatch();
     }