Przeglądaj źródła

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

bunnei 5 lat temu
rodzic
commit
5060a97210
1 zmienionych plików z 1 dodań i 1 usunięć
  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();
     }