From 08fd3e4ea1565c8674c837cd9e08b1e24f438d33 Mon Sep 17 00:00:00 2001 From: Raymond Toy <toy.raymond@gmail.com> Date: Sat, 2 Aug 2014 13:38:58 -0700 Subject: [PATCH] Initialize k to get rid of a compiler warning from clang. The compiler thinks k might not be initialized because the if on line 143 might not be true, leaving t uninitialized. We know that the condition is always true because |x| < -2^-28 in the previous line. --- src/lisp/e_exp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lisp/e_exp.c b/src/lisp/e_exp.c index 4d94a1e3d..3d84224cc 100644 --- a/src/lisp/e_exp.c +++ b/src/lisp/e_exp.c @@ -106,7 +106,8 @@ P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */ #endif { double y,hi,lo,c,t; - int k,xsb; + int k = 0; + int xsb; unsigned hx; union { int i[2]; double d; } ux; -- GitLab