Fix some warnings

This commit is contained in:
Megamouse 2024-03-26 11:28:50 +01:00
parent 0e73b58abf
commit e05239f3d9
2 changed files with 1 additions and 6 deletions

View file

@ -4690,8 +4690,6 @@ struct spu_llvm
auto workers_ptr = m_workers.load(); auto workers_ptr = m_workers.load();
auto& workers = *workers_ptr; auto& workers = *workers_ptr;
usz add_count = 65535;
while (thread_ctrl::state() != thread_state::aborting) while (thread_ctrl::state() != thread_state::aborting)
{ {
for (const auto& pair : registered.pop_all()) for (const auto& pair : registered.pop_all())
@ -4722,7 +4720,6 @@ struct spu_llvm
// Interrupt profiler thread and put it to sleep // Interrupt profiler thread and put it to sleep
static_cast<void>(prof_mutex.reset()); static_cast<void>(prof_mutex.reset());
thread_ctrl::wait_on(utils::bless<atomic_t<u32>>(&registered)[1], 0); thread_ctrl::wait_on(utils::bless<atomic_t<u32>>(&registered)[1], 0);
add_count = 65535; // Reset count
std::fill(notify_compile.begin(), notify_compile.end(), 0); // Reset notification flags std::fill(notify_compile.begin(), notify_compile.end(), 0); // Reset notification flags
notify_compile_count = 0; notify_compile_count = 0;
compile_pending = 0; compile_pending = 0;

View file

@ -3006,7 +3006,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
thread_ctrl::wait_for(5'000); thread_ctrl::wait_for(5'000);
} }
for (int i = 0; thread_ctrl::state() != thread_state::aborting;) while (thread_ctrl::state() != thread_state::aborting)
{ {
if (auto ar_ptr = to_ar.load()) if (auto ar_ptr = to_ar.load())
{ {
@ -3245,8 +3245,6 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
if (savestate) if (savestate)
{ {
auto& ar = *to_ar.load();
fs::stat_t file_stat{}; fs::stat_t file_stat{};
if (!file.commit() || !fs::get_stat(path, file_stat)) if (!file.commit() || !fs::get_stat(path, file_stat))