From 3bbb06c34ab10e7887a242aa0386b87043ed9e16 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 25 May 2019 17:07:19 -0400 Subject: [PATCH] a64_emit_x64: Apply [[maybe_unused]] to unused lambda parameter This can result in an unused variable warning on Windows otherwise. --- src/backend/x64/a64_emit_x64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/x64/a64_emit_x64.cpp b/src/backend/x64/a64_emit_x64.cpp index ef6e2ab6..edff66b5 100644 --- a/src/backend/x64/a64_emit_x64.cpp +++ b/src/backend/x64/a64_emit_x64.cpp @@ -141,7 +141,7 @@ void A64EmitX64::GenMemory128Accessors() { memory_read_128 = code.getCurr(); #ifdef _WIN32 Devirtualize<&A64::UserCallbacks::MemoryRead128>(conf.callbacks).EmitCallWithReturnPointer(code, - [&](Xbyak::Reg64 return_value_ptr, RegList args) { + [&](Xbyak::Reg64 return_value_ptr, [[maybe_unused]] RegList args) { code.mov(code.ABI_PARAM3, code.ABI_PARAM2); code.sub(rsp, 8 + 16 + ABI_SHADOW_SPACE); code.lea(return_value_ptr, ptr[rsp + ABI_SHADOW_SPACE]);