block_of_code: Replace cast with [[maybe_unused]] in DoesCpuSupport()
This commit is contained in:
parent
1138ac3429
commit
deb9dd4acc
1 changed files with 1 additions and 2 deletions
|
@ -310,11 +310,10 @@ void BlockOfCode::EnsurePatchLocationSize(CodePtr begin, size_t size) {
|
||||||
nop(size - current_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
|
#ifdef DYNARMIC_ENABLE_CPU_FEATURE_DETECTION
|
||||||
return cpu_info.has(type);
|
return cpu_info.has(type);
|
||||||
#else
|
#else
|
||||||
(void)type;
|
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue