Skip to content

Commit 769470a

Browse files
committed
Fix missing var
1 parent 01af4b3 commit 769470a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/xsimd/xsimd_cpu_features_x86.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,11 @@ namespace xsimd
247247
{
248248
inline cpuid_reg_t get_cpuid(int level, int count) noexcept
249249
{
250+
cpuid_reg_t reg = {};
250251
#if !XSIMD_TARGET_X86
251252
(void)level;
252253
(void)count;
253-
return {}; // All bits to zero
254+
return reg; // All bits to zero
254255

255256
#elif defined(_MSC_VER)
256257
__cpuidex(reg, level, count);

0 commit comments

Comments
 (0)