fix unitialized variable warning

This commit is contained in:
Dennis Luxen 2014-03-04 13:52:41 +01:00
parent 85a007d87b
commit 0baa8215ef

View File

@ -98,7 +98,7 @@ private:
} }
inline unsigned cpuid() const { inline unsigned cpuid() const {
unsigned eax, ebx, ecx, edx; unsigned eax = 0, ebx = 0, ecx = 0, edx = 0;
// on X64 this calls hardware cpuid(.) instr. otherwise a dummy impl. // on X64 this calls hardware cpuid(.) instr. otherwise a dummy impl.
__get_cpuid( 1, &eax, &ebx, &ecx, &edx ); __get_cpuid( 1, &eax, &ebx, &ecx, &edx );
return ecx; return ecx;