From deb9dd4acc546f5be01dcad6eb6f8e3c054c78fd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 22 Feb 2019 22:46:06 -0500 Subject: [PATCH] block_of_code: Replace cast with [[maybe_unused]] in DoesCpuSupport() --- src/backend/x64/block_of_code.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/x64/block_of_code.cpp b/src/backend/x64/block_of_code.cpp index b2bfec46..fc59d464 100644 --- a/src/backend/x64/block_of_code.cpp +++ b/src/backend/x64/block_of_code.cpp @@ -310,11 +310,10 @@ void BlockOfCode::EnsurePatchLocationSize(CodePtr begin, size_t size) { nop(size - current_size); } -bool BlockOfCode::DoesCpuSupport(Xbyak::util::Cpu::Type type) const { +bool BlockOfCode::DoesCpuSupport([[maybe_unused]] Xbyak::util::Cpu::Type type) const { #ifdef DYNARMIC_ENABLE_CPU_FEATURE_DETECTION return cpu_info.has(type); #else - (void)type; return false; #endif }