mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Fix some warnings
This commit is contained in:
parent
cfd571cfc2
commit
3187dc816e
5 changed files with 6 additions and 5 deletions
|
|
@ -598,7 +598,10 @@ int aes_setkey_dec( aes_context *ctx, const unsigned char *key, unsigned int key
|
|||
*RK++ = *SK++;
|
||||
*RK++ = *SK++;
|
||||
|
||||
#if defined(__SSE2__) || defined(_M_X64)
|
||||
done:
|
||||
#endif
|
||||
|
||||
// Wipe the stack buffer clean
|
||||
std::fill_n(reinterpret_cast<volatile char*>(&cty), sizeof(cty), 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -807,7 +807,7 @@ bool ppu_module<lv2_obj>::analyse(u32 lib_toc, u32 entry, const u32 sec_end, con
|
|||
ppu_log.trace("OPD: [0x%x] 0x%x (TOC=0x%x)", _ptr, addr, toc);
|
||||
|
||||
TOCs.emplace(toc);
|
||||
auto& func = add_func(addr, addr_heap.count(_ptr.addr()) ? toc : 0, 0);
|
||||
add_func(addr, addr_heap.count(_ptr.addr()) ? toc : 0, 0);
|
||||
known_functions.emplace(addr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4910,7 +4910,7 @@ bool ppu_initialize(const ppu_module<lv2_obj>& info, bool check_only, u64 file_s
|
|||
|
||||
usz code_size_until_jump = umax;
|
||||
|
||||
auto func = build_function_asm<u8*(*)(ppu_thread&, u64, u8*, u64, u64, u64)>(name, [&](native_asm& c, auto& args)
|
||||
auto func = build_function_asm<u8*(*)(ppu_thread&, u64, u8*, u64, u64, u64)>(name, [&](native_asm& c, auto& /*args*/)
|
||||
{
|
||||
#if defined(ARCH_X64)
|
||||
c.mov(x86::edx, func_addr - seg0); // Load PC
|
||||
|
|
|
|||
|
|
@ -358,8 +358,6 @@ Function* PPUTranslator::GetSymbolResolver(const ppu_module<lv2_obj>& info)
|
|||
// Create an array of function pointers
|
||||
std::vector<llvm::Constant*> functions;
|
||||
|
||||
const auto [min_addr, max_addr] = *ensure(info.jit_bounds);
|
||||
|
||||
for (const auto& f : info.get_funcs(false, true))
|
||||
{
|
||||
if (!f.size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue