From c2f5de1c554b075552a51c3218b1b578e998c8a6 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 19 Aug 2024 22:44:32 +0300 Subject: [PATCH] Fix compiler warnings about unused args for aarch64 --- Utilities/Thread.cpp | 4 ++++ rpcs3/Emu/Cell/PPUInterpreter.cpp | 8 ++++---- rpcs3/Emu/Cell/PPUThread.cpp | 2 ++ rpcs3/Emu/Cell/SPUCommonRecompiler.cpp | 3 +++ rpcs3/Emu/Cell/SPUInterpreter.cpp | 2 ++ rpcs3/Emu/Cell/SPUThread.cpp | 6 ++++++ rpcs3/util/types.hpp | 2 ++ 7 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 325e4ea00d..54b9bacef9 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -2310,6 +2310,10 @@ thread_base::native_entry thread_base::make_trampoline(u64(*entry)(thread_base* c.bind(_ret); c.add(x86::rsp, 0x28); c.ret(); +#else + UNUSED(c); + UNUSED(args); + UNUSED(entry); #endif }); } diff --git a/rpcs3/Emu/Cell/PPUInterpreter.cpp b/rpcs3/Emu/Cell/PPUInterpreter.cpp index 7e8d2034b8..9b7ad2ecba 100644 --- a/rpcs3/Emu/Cell/PPUInterpreter.cpp +++ b/rpcs3/Emu/Cell/PPUInterpreter.cpp @@ -129,7 +129,9 @@ struct ppu_exec_select }; \ } +#ifdef ARCH_X64 static constexpr ppu_opcode_t s_op{}; +#endif namespace asmjit { @@ -293,7 +295,7 @@ struct ppu_abstract_t } template - void operator=(T&& _val) const + void operator=([[maybe_unused]] T&& _val) const { FOR_X64(store_op, kIdMovaps, kIdVmovaps, static_cast(g_vc)->ppu_vr(bf_t{}, true), std::forward(_val)); } @@ -316,11 +318,9 @@ struct ppu_abstract_t } template - void operator=(T&& _val) const + void operator=([[maybe_unused]] T&& _val) const { - #if defined(ARCH_X64) FOR_X64(store_op, kIdMovaps, kIdVmovaps, *this, std::forward(_val)); - #endif } } sat{}; }; diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 2a97028f2f..6e0f8865fd 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -3292,6 +3292,8 @@ const auto ppu_stcx_accurate_tx = build_function_asm