diff options
| -rw-r--r-- | src/core/hle/kernel/k_condition_variable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_condition_variable.cpp b/src/core/hle/kernel/k_condition_variable.cpp index fcfb74ec1..aadcc297a 100644 --- a/src/core/hle/kernel/k_condition_variable.cpp +++ b/src/core/hle/kernel/k_condition_variable.cpp | |||
| @@ -240,7 +240,7 @@ void KConditionVariable::SignalImpl(KThread* thread) { | |||
| 240 | 240 | ||
| 241 | void KConditionVariable::Signal(u64 cv_key, s32 count) { | 241 | void KConditionVariable::Signal(u64 cv_key, s32 count) { |
| 242 | // Perform signaling. | 242 | // Perform signaling. |
| 243 | int num_waiters = 0; | 243 | s32 num_waiters{}; |
| 244 | { | 244 | { |
| 245 | KScopedSchedulerLock sl(kernel); | 245 | KScopedSchedulerLock sl(kernel); |
| 246 | 246 | ||
| @@ -257,7 +257,7 @@ void KConditionVariable::Signal(u64 cv_key, s32 count) { | |||
| 257 | 257 | ||
| 258 | // If we have no waiters, clear the has waiter flag. | 258 | // If we have no waiters, clear the has waiter flag. |
| 259 | if (it == thread_tree.end() || it->GetConditionVariableKey() != cv_key) { | 259 | if (it == thread_tree.end() || it->GetConditionVariableKey() != cv_key) { |
| 260 | const u32 has_waiter_flag = 0; | 260 | const u32 has_waiter_flag{}; |
| 261 | WriteToUser(system, cv_key, std::addressof(has_waiter_flag)); | 261 | WriteToUser(system, cv_key, std::addressof(has_waiter_flag)); |
| 262 | } | 262 | } |
| 263 | } | 263 | } |