From ac46d6f8dea31afe585af0190fad18d5d31efbd3 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sat, 19 Dec 2020 19:50:52 +0100 Subject: [PATCH] Fix GCC warning --- src/crypto/randomx/jit_compiler_x86.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crypto/randomx/jit_compiler_x86.cpp b/src/crypto/randomx/jit_compiler_x86.cpp index 5f7a83a14..0e79d6a40 100644 --- a/src/crypto/randomx/jit_compiler_x86.cpp +++ b/src/crypto/randomx/jit_compiler_x86.cpp @@ -244,7 +244,9 @@ namespace randomx { switch (arch) { case xmrig::ICpuInfo::ARCH_ZEN: case xmrig::ICpuInfo::ARCH_ZEN_PLUS: + default: // AVX2 init is slower on Zen/Zen+ + // Also disable it for other unknown architectures initDatasetAVX2 = false; break; case xmrig::ICpuInfo::ARCH_ZEN2: