From 638fe68535ac6ae5d5cf38ebd5f9f3e21d96ade6 Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Wed, 26 Aug 2026 20:03:41 +0200 Subject: [PATCH] fix wunused warnings --- Source/Atmosphere-Patches/secmon_setup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Atmosphere-Patches/secmon_setup.cpp b/Source/Atmosphere-Patches/secmon_setup.cpp index 4cf37b3a..2103820a 100644 --- a/Source/Atmosphere-Patches/secmon_setup.cpp +++ b/Source/Atmosphere-Patches/secmon_setup.cpp @@ -754,7 +754,7 @@ namespace ams::secmon { hw::InstructionSynchronizationBarrier(); } - void SetupGpuCarveout() { + [[maybe_unused]] void SetupGpuCarveout() { /* Configure carveout 2. */ reg::Write(MC + MC_SECURITY_CARVEOUT2_BOM, static_cast(MemoryRegionDramGpuCarveout.GetAddress() >> 0)); reg::Write(MC + MC_SECURITY_CARVEOUT2_BOM_HI, static_cast(MemoryRegionDramGpuCarveout.GetAddress() >> BITSIZEOF(u32))); @@ -900,7 +900,7 @@ namespace ams::secmon { reg::ReadWrite(PMC + APBDEV_PMC_SECURE_SCRATCH39, REG_BITS_VALUE(0, 27, WarmbootCarveoutConfig)); } - void EnableBpmpSmmu() { + [[maybe_unused]] void EnableBpmpSmmu() { /* Define the ASID contents. */ constexpr int BpmpAsid = 1; constexpr uintptr_t BpmpAsidPde = MemoryRegionPhysicalDeviceSecurityEngine.GetAddress();