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

pull/8/head
bunnei 4 years ago
parent 08c63d5c75
commit d14b8fc747

@ -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();
} }

Loading…
Cancel
Save