From 6ebc1aec490cd88be2b1aa000e579d8c01e88082 Mon Sep 17 00:00:00 2001 From: Martin Mazein Date: Fri, 4 Sep 2020 14:07:58 +0200 Subject: [PATCH] lib: fix compile time warnings for unitialized variabled Signed-off-by: Martin Mazein --- include/lib.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lib.h b/include/lib.h index b243a809..49a80a3c 100644 --- a/include/lib.h +++ b/include/lib.h @@ -108,28 +108,28 @@ static inline void cpuid(uint32_t leaf, uint32_t *eax, uint32_t *ebx, uint32_t * } static inline uint32_t cpuid_eax(uint32_t leaf) { - uint32_t eax = 0, ign; + uint32_t eax = 0, ign = 0; cpuid(leaf, &eax, &ign, &ign, &ign); return eax; } static inline uint32_t cpuid_ebx(uint32_t leaf) { - uint32_t ebx = 0, ign; + uint32_t ebx = 0, ign = 0; cpuid(leaf, &ign, &ebx, &ign, &ign); return ebx; } static inline uint32_t cpuid_ecx(uint32_t leaf) { - uint32_t ecx = 0, ign; + uint32_t ecx = 0, ign = 0; cpuid(leaf, &ign, &ign, &ecx, &ign); return ecx; } static inline uint32_t cpuid_edx(uint32_t leaf) { - uint32_t edx = 0, ign; + uint32_t edx = 0, ign = 0; cpuid(leaf, &ign, &ign, &ign, &edx); return edx;