Fix some warnings

This commit is contained in:
Nekotekina 2021-07-30 09:31:36 +03:00
parent fc5840cda6
commit 658b4f70ef
5 changed files with 6 additions and 10 deletions

View File

@ -87,7 +87,7 @@ error_code sys_hid_manager_ioctl(u32 hid_handle, u32 pkg_id, vm::ptr<void> buf,
// pkg_id == 6 == setpressmode?
else if (pkg_id == 0x68)
{
auto info = vm::static_ptr_cast<sys_hid_ioctl_68>(buf);
[[maybe_unused]] auto info = vm::static_ptr_cast<sys_hid_ioctl_68>(buf);
//info->unk2 = 0;
}

View File

@ -190,8 +190,6 @@ error_code sys_ss_get_cache_of_product_mode(vm::ptr<u8> ptr)
{
sys_ss.todo("sys_ss_get_cache_of_product_mode(ptr=*0x%x)", ptr);
s32 pid = 1;
if (!ptr)
{
return CELL_EINVAL;

View File

@ -33,7 +33,7 @@ error_code sys_storage_open(u64 device, u64 mode, vm::ptr<u32> fd, u64 flags)
return CELL_EFAULT;
}
u64 storage_id = device & 0xFFFFF00FFFFFFFF;
[[maybe_unused]] u64 storage_id = device & 0xFFFFF00FFFFFFFF;
fs::file file;
if (const u32 id = idm::make<lv2_storage>(device, std::move(file), mode, flags))

View File

@ -217,7 +217,7 @@ std::string FragmentProgramDecompiler::AddConst()
return name;
}
auto data = reinterpret_cast<be_t<u32>*>(static_cast<char*>(m_prog.get_data()) + m_size + 4 * sizeof(u32));
auto data = reinterpret_cast<be_t<u32>*>(reinterpret_cast<uptr>(m_prog.get_data()) + m_size + 4 * sizeof(u32));
m_offset = 2 * 4 * sizeof(u32);
u32 x = GetData(data[0]);
u32 y = GetData(data[1]);

View File

@ -263,8 +263,6 @@ std::vector<u8> tar_object::save_directory(const std::string& src_dir, std::vect
return std::move(init);
}
u32 count = 0;
if (stat.is_directory)
{
bool has_items = false;