This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: silence warning in soft-fp


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)
 
 /*



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]