diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-03-06 05:06:19 -0500 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-03-27 12:52:21 -0400 |
commit | acc2a51add8efac2c8925eb981792c0f11c88dfb (patch) | |
tree | 2107ace84d2f597607a3b060b863ef1f5f39ee5c | |
parent | b86db40e1ecc910c73b6bed8368816d9ae378fb6 (diff) |
parisc: Silence uninitialized variable warning in dbl_to_sgl_fcnvff()
Smatch warns that is_tiny can be used uninitialized:
arch/parisc/math-emu/fcnvff.c:297 dbl_to_sgl_fcnvff()
error: uninitialized symbol 'is_tiny'.
This code is very old so that suggests the bug doesn't have a huge
affect in real life. But I've read the code and it seems like a
reasonable warning. Either way it should be harmless to initialize it
to false and silence the static checker warning.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/math-emu/fcnvff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/math-emu/fcnvff.c b/arch/parisc/math-emu/fcnvff.c index 76c063f7d17c..f9357d9d4cb1 100644 --- a/arch/parisc/math-emu/fcnvff.c +++ b/arch/parisc/math-emu/fcnvff.c | |||
@@ -148,7 +148,7 @@ dbl_to_sgl_fcnvff( | |||
148 | register int src_exponent, dest_exponent, dest_mantissa; | 148 | register int src_exponent, dest_exponent, dest_mantissa; |
149 | register boolean inexact = FALSE, guardbit = FALSE, stickybit = FALSE; | 149 | register boolean inexact = FALSE, guardbit = FALSE, stickybit = FALSE; |
150 | register boolean lsb_odd = FALSE; | 150 | register boolean lsb_odd = FALSE; |
151 | boolean is_tiny; | 151 | boolean is_tiny = FALSE; |
152 | 152 | ||
153 | Dbl_copyfromptr(srcptr,srcp1,srcp2); | 153 | Dbl_copyfromptr(srcptr,srcp1,srcp2); |
154 | src_exponent = Dbl_exponent(srcp1); | 154 | src_exponent = Dbl_exponent(srcp1); |