VERY experimental Nintendo Switch 2 emulator
C++
[core/arm/nce] suppress unused variable warnings (#4002)
lost-chaosd761ecba8c3c
diff --git a/src/core/arm/nce/arm_nce.cpp b/src/core/arm/nce/arm_nce.cppindex bbff9f2829..63d5638fce 100644--- a/src/core/arm/nce/arm_nce.cpp+++ b/src/core/arm/nce/arm_nce.cpp@@ -388,7 +388,7 @@ void ArmNce::SignalInterrupt(Kernel::KThread* thread) {}}-const std::size_t CACHE_PAGE_SIZE = 4096;+[[maybe_unused]] const std::size_t CACHE_PAGE_SIZE = 4096;void ArmNce::ClearInstructionCache() {#ifdef __aarch64__diff --git a/src/core/arm/nce/interpreter_visitor.cpp b/src/core/arm/nce/interpreter_visitor.cppindex ec2b155fe4..2ccc176323 100644--- a/src/core/arm/nce/interpreter_visitor.cpp+++ b/src/core/arm/nce/interpreter_visitor.cpp@@ -12,9 +12,9 @@ namespace Core {namespace {// Prefetch tuning parameters-constexpr size_t CACHE_LINE_SIZE = 64;-constexpr size_t PREFETCH_STRIDE = 128; // 2 cache lines ahead-constexpr size_t SIMD_PREFETCH_THRESHOLD = 32; // Bytes+[[maybe_unused]] constexpr size_t CACHE_LINE_SIZE = 64;+[[maybe_unused]] constexpr size_t PREFETCH_STRIDE = 128; // 2 cache lines ahead+[[maybe_unused]] constexpr size_t SIMD_PREFETCH_THRESHOLD = 32; // Bytes} // namespacetemplate <u32 BitSize>