From bc6d48df59376dfc1ea3aa709133e78e34beb7b5 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 18 Mar 2017 07:06:59 -0400 Subject: [PATCH] Cleared C4456 "declaration hides previous local declaration" for MSVC --- cpu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpu.cpp b/cpu.cpp index 49eddb22..62e12fe2 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -225,7 +225,7 @@ void DetectX86Features() #endif { // Coverity finding CID 171239... - word32 cpuid1[4]={0}, cpuid2[4]={0}, cpuid3[4]={0};; + word32 cpuid1[4]={0}, cpuid2[4]={0}, cpuid3[4]={0}; if (!CpuId(0, cpuid1)) return; if (!CpuId(1, cpuid2)) @@ -263,7 +263,6 @@ void DetectX86Features() if (cpuid1[0] /*EAX*/ >= 7) { - word32 cpuid3[4]; if (CpuId(7, cpuid3)) { g_hasRDSEED = !!(cpuid3[1] /*EBX*/ & RDSEED_FLAG);