Skip to content

Commit 4c1e9e0

Browse files
committed
silence compiler warnings about uninitialized variables
1 parent 4953164 commit 4c1e9e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

port/port_posix_sse.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ static inline uint64_t LE_LOAD64(const uint8_t *p) {
5050

5151
static inline bool HaveSSE42() {
5252
#if defined(_MSC_VER)
53-
int cpu_info[4];
53+
int cpu_info[4] = {};
5454
__cpuid(cpu_info, 1);
5555
return (cpu_info[2] & (1 << 20)) != 0;
5656
#elif defined(__GNUC__)
57-
unsigned int eax, ebx, ecx, edx;
57+
unsigned int eax, ebx, ecx=0, edx;
5858
__get_cpuid(1, &eax, &ebx, &ecx, &edx);
5959
return (ecx & (1 << 20)) != 0;
6060
#else

0 commit comments

Comments
 (0)