From 0baa8215efc16d4b06dfa10bafcc31038dc3c969 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 4 Mar 2014 13:52:41 +0100 Subject: [PATCH] fix unitialized variable warning --- Algorithms/IteratorBasedCRC32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/IteratorBasedCRC32.h b/Algorithms/IteratorBasedCRC32.h index e4a6dc6ec..9c2e5ebbc 100644 --- a/Algorithms/IteratorBasedCRC32.h +++ b/Algorithms/IteratorBasedCRC32.h @@ -98,7 +98,7 @@ private: } 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. __get_cpuid( 1, &eax, &ebx, &ecx, &edx ); return ecx;