mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-01 12:08:12 +00:00
Fix some warnings
This commit is contained in:
parent
3ea0e391db
commit
54e6cf95d7
@ -5083,7 +5083,11 @@ bool spu_thread::set_ch_value(u32 ch, u32 value)
|
||||
|
||||
spu_log.trace("sys_spu_thread_throw_event(spup=%d, data0=0x%x, data1=0x%x)", spup, value & 0x00ffffff, data);
|
||||
|
||||
const auto queue = (std::lock_guard{group->mutex}, this->spup[spup]);
|
||||
std::shared_ptr<lv2_event_queue> queue;
|
||||
{
|
||||
std::lock_guard lock{group->mutex};
|
||||
queue = this->spup[spup];
|
||||
}
|
||||
|
||||
// TODO: check passing spup value
|
||||
if (auto res = queue ? queue->send(SYS_SPU_THREAD_EVENT_USER_KEY, lv2_id, (u64{spup} << 32) | (value & 0x00ffffff), data) : CELL_ENOTCONN)
|
||||
@ -5980,8 +5984,6 @@ spu_exec_object spu_thread::capture_memory_as_elf(std::span<spu_memory_segment_d
|
||||
{
|
||||
for (pc0 = 0; pc0 < SPU_LS_SIZE; pc0 += 4)
|
||||
{
|
||||
const spu_opcode_t op{read_from_ptr<be_t<u32>>(all_data.data(), pc0)};
|
||||
|
||||
// Try to find a function entry (very basic)
|
||||
if (is_exec_code(pc0, all_data.data()))
|
||||
break;
|
||||
|
@ -154,7 +154,7 @@ bool vfs::unmount(std::string_view vpath)
|
||||
std::lock_guard lock(table.mutex);
|
||||
|
||||
// Search entry recursively and remove it (including all children)
|
||||
std::function<void(vfs_directory&, int)> unmount_children;
|
||||
std::function<void(vfs_directory&, usz)> unmount_children;
|
||||
unmount_children = [&entry_list, &unmount_children](vfs_directory& dir, usz depth) -> void
|
||||
{
|
||||
if (depth >= entry_list.size())
|
||||
|
@ -82,7 +82,7 @@ namespace utils
|
||||
|
||||
#if defined(MFD_HUGETLB) && defined(MFD_HUGE_2MB)
|
||||
constexpr int c_mfd_huge_2mb = MFD_HUGETLB | MFD_HUGE_2MB;
|
||||
#else
|
||||
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
constexpr int c_mfd_huge_2mb = 0;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user