3
0
Fork 0
forked from suyu/suyu

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

This commit is contained in:
bunnei 2021-08-07 12:33:31 -07:00
parent 08c63d5c75
commit d14b8fc747

View file

@ -773,7 +773,7 @@ public:
class KScopedDisableDispatch {
public:
explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
[[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
GetCurrentThread(kernel).DisableDispatch();
}