PATCH: silence warning in soft-fp

Ben Elliston bje@au1.ibm.com
Thu Dec 18 23:55:00 GMT 2008


This patch silences a warning when building soft-fp, due to the _e field
being uninitialised in some instances.  Okay for mainline?

Ben

2008-12-19  Ben Elliston  <bje@au.ibm.com>

        * soft-fp/op-common.h (_FP_DECL): Initialise _e field.

Index: soft-fp/op-common.h
===================================================================
RCS file: /cvs/glibc/libc/soft-fp/op-common.h,v
retrieving revision 1.12
diff -u -p -r1.12 op-common.h
--- soft-fp/op-common.h 3 May 2007 16:36:49 -0000       1.12
+++ soft-fp/op-common.h 18 Dec 2008 23:06:21 -0000
@@ -31,7 +31,7 @@
    MA 02110-1301, USA.  */
 
 #define _FP_DECL(wc, X)                                                \
-  _FP_I_TYPE X##_c __attribute__((unused)), X##_s, X##_e;      \
+  _FP_I_TYPE X##_c __attribute__((unused)), X##_s, X##_e = 0;  \
   _FP_FRAC_DECL_##wc(X)
 
 /*




More information about the Libc-alpha mailing list