mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 09:19:59 +00:00
kernel/scheduler: Mark SchedulerLock constructor as nodiscard
Allows the compiler to warn about cases where the constructor is used but then immediately discarded, which is a potential cause of locking/unlocking bugs.
This commit is contained in:
parent
e050594706
commit
f808258ed9
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ private:
|
||||||
|
|
||||||
class SchedulerLock {
|
class SchedulerLock {
|
||||||
public:
|
public:
|
||||||
explicit SchedulerLock(KernelCore& kernel);
|
[[nodiscard]] explicit SchedulerLock(KernelCore& kernel);
|
||||||
~SchedulerLock();
|
~SchedulerLock();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue