Skip to content

Commit

Permalink
silence compiler warnings about uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed Jul 13, 2017
1 parent 4953164 commit 4c1e9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions port/port_posix_sse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ static inline uint64_t LE_LOAD64(const uint8_t *p) {

static inline bool HaveSSE42() {
#if defined(_MSC_VER)
int cpu_info[4];
int cpu_info[4] = {};
__cpuid(cpu_info, 1);
return (cpu_info[2] & (1 << 20)) != 0;
#elif defined(__GNUC__)
unsigned int eax, ebx, ecx, edx;
unsigned int eax, ebx, ecx=0, edx;
__get_cpuid(1, &eax, &ebx, &ecx, &edx);
return (ecx & (1 << 20)) != 0;
#else
Expand Down

0 comments on commit 4c1e9e0

Please sign in to comment.