mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fix some warnings
This commit is contained in:
parent
0e73b58abf
commit
e05239f3d9
@ -4690,8 +4690,6 @@ struct spu_llvm
|
||||
auto workers_ptr = m_workers.load();
|
||||
auto& workers = *workers_ptr;
|
||||
|
||||
usz add_count = 65535;
|
||||
|
||||
while (thread_ctrl::state() != thread_state::aborting)
|
||||
{
|
||||
for (const auto& pair : registered.pop_all())
|
||||
@ -4722,7 +4720,6 @@ struct spu_llvm
|
||||
// Interrupt profiler thread and put it to sleep
|
||||
static_cast<void>(prof_mutex.reset());
|
||||
thread_ctrl::wait_on(utils::bless<atomic_t<u32>>(®istered)[1], 0);
|
||||
add_count = 65535; // Reset count
|
||||
std::fill(notify_compile.begin(), notify_compile.end(), 0); // Reset notification flags
|
||||
notify_compile_count = 0;
|
||||
compile_pending = 0;
|
||||
|
@ -3006,7 +3006,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
||||
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())
|
||||
{
|
||||
@ -3245,8 +3245,6 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
||||
|
||||
if (savestate)
|
||||
{
|
||||
auto& ar = *to_ar.load();
|
||||
|
||||
fs::stat_t file_stat{};
|
||||
|
||||
if (!file.commit() || !fs::get_stat(path, file_stat))
|
||||
|
Loading…
Reference in New Issue
Block a user