Reduce build warnings and enable Qt build
This commit is contained in:
@@ -55,8 +55,10 @@ void InitOnce(OnceType* once, void (*initializer)()) {
|
||||
|
||||
bool HasAcceleratedCRC32C() {
|
||||
#if (defined(__x86_64__) || defined(__i386__)) && defined(__GNUC__)
|
||||
unsigned int eax, ebx, ecx, edx;
|
||||
__get_cpuid(1, &eax, &ebx, &ecx, &edx);
|
||||
unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0;
|
||||
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) == 0) {
|
||||
return false;
|
||||
}
|
||||
return (ecx & (1 << 20)) != 0;
|
||||
#else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user