Sfoglia il codice sorgente

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

bunnei 5 anni fa
parent
commit
5060a97210
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();
     }