From 4c1e9e01688864a32217e541102fa8d2df9a3d59 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Wed, 12 Jul 2017 20:04:54 -0400 Subject: [PATCH] silence compiler warnings about uninitialized variables --- port/port_posix_sse.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port/port_posix_sse.cc b/port/port_posix_sse.cc index 1e519ba0b64bef..22c1e1d336c021 100644 --- a/port/port_posix_sse.cc +++ b/port/port_posix_sse.cc @@ -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