Cleared C4456 "declaration hides previous local declaration" for MSVC

pull/398/head
Jeffrey Walton 2017-03-18 07:06:59 -04:00
parent 1bfb6be934
commit bc6d48df59
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 2 deletions

View File

@ -225,7 +225,7 @@ void DetectX86Features()
#endif #endif
{ {
// Coverity finding CID 171239... // 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)) if (!CpuId(0, cpuid1))
return; return;
if (!CpuId(1, cpuid2)) if (!CpuId(1, cpuid2))
@ -263,7 +263,6 @@ void DetectX86Features()
if (cpuid1[0] /*EAX*/ >= 7) if (cpuid1[0] /*EAX*/ >= 7)
{ {
word32 cpuid3[4];
if (CpuId(7, cpuid3)) if (CpuId(7, cpuid3))
{ {
g_hasRDSEED = !!(cpuid3[1] /*EBX*/ & RDSEED_FLAG); g_hasRDSEED = !!(cpuid3[1] /*EBX*/ & RDSEED_FLAG);