Explorar el Código

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

bunnei hace 5 años
padre
commit
5060a97210
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
     }