From b9a9d99b226768dc972f0c40488f332066396e69 Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Fri, 7 Mar 2014 15:56:23 -0500 Subject: scons: Fixes uninitialized warnings issued by clang Small fixes to appease recent clang versions. --- src/arch/arm/insts/fplib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch') diff --git a/src/arch/arm/insts/fplib.cc b/src/arch/arm/insts/fplib.cc index 1f44eed09..e6528358a 100644 --- a/src/arch/arm/insts/fplib.cc +++ b/src/arch/arm/insts/fplib.cc @@ -2509,7 +2509,7 @@ fplibRecipEstimate(uint32_t op, FPSCR &fpscr) result = fp32_infinity(sgn); flags |= FPLIB_DZC; } else if (!((uint32_t)(op << 1) >> 22)) { - bool overflow_to_inf; + bool overflow_to_inf = false; switch (FPCRRounding(fpscr)) { case FPRounding_TIEEVEN: overflow_to_inf = true; @@ -2570,7 +2570,7 @@ fplibRecipEstimate(uint64_t op, FPSCR &fpscr) result = fp64_infinity(sgn); flags |= FPLIB_DZC; } else if (!((uint64_t)(op << 1) >> 51)) { - bool overflow_to_inf; + bool overflow_to_inf = false; switch (FPCRRounding(fpscr)) { case FPRounding_TIEEVEN: overflow_to_inf = true; -- cgit v1.2.3