Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

virtual_buffer: Mark size parameter of FreeMemoryPages() as [[maybe_unused]]

Lioncash3aad30295324
diff --git a/src/common/virtual_buffer.cpp b/src/common/virtual_buffer.cpp
index b426f47477..be5b67752b 100644
--- a/src/common/virtual_buffer.cpp
+++ b/src/common/virtual_buffer.cpp
@@ -38,7 +38,7 @@ void* AllocateMemoryPages(std::size_t size) {
return base;
}
-void FreeMemoryPages(void* base, std::size_t size) {
+void FreeMemoryPages(void* base, [[maybe_unused]] std::size_t size) {
if (!base) {
return;
}