dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and spec_case.
authorAndreas Tobler <a.tobler@schweiz.ch>
Sat, 5 Mar 2005 07:47:58 +0000 (08:47 +0100)
committerAndreas Tobler <andreast@gcc.gnu.org>
Sat, 5 Mar 2005 07:47:58 +0000 (08:47 +0100)
2005-03-05  Andreas Tobler  <a.tobler@schweiz.ch>

* java/lang/dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and
spec_case. Initialize pointer mlo.

* java/lang/strtod.c (_strtod_r): Initialize pointers bb, bd, ds and
delta.

* java/lang/e_asin.c (__ieee754_asin): Initialize variable t.

* java/lang/e_exp.c (__ieee754_exp): Initialize variables hi, lo
and k.

* java/lang/e_rem_pio2.c (__ieee754_rem_pio2): Initialize
uninitialized variable z.

* gnu/java/net/natPlainDatagramSocketImplPosix.cc (mcastGrp): Ifdef
possible unused variables.

* gnu/java/nio/natPipeImplPosix.cc (init): Remove self.

* jawt.c: Include <stdlib.h> to fix implict declaration of malloc.

From-SVN: r95925

libjava/ChangeLog
libjava/gnu/java/net/natPlainDatagramSocketImplPosix.cc
libjava/gnu/java/nio/natPipeImplPosix.cc
libjava/java/lang/dtoa.c
libjava/java/lang/e_asin.c
libjava/java/lang/e_exp.c
libjava/java/lang/e_rem_pio2.c
libjava/java/lang/strtod.c
libjava/jawt.c

index e2f1c0516e06ffea08a9666e17137871521ac6d9..c3be31043265137c5f5ba8d0d4d40b7be285a757 100644 (file)
@@ -1,3 +1,26 @@
+2005-03-05  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * java/lang/dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and
+       spec_case. Initialize pointer mlo.
+
+       * java/lang/strtod.c (_strtod_r): Initialize pointers bb, bd, ds and
+       delta.
+
+       * java/lang/e_asin.c (__ieee754_asin): Initialize variable t.
+
+       * java/lang/e_exp.c (__ieee754_exp): Initialize variables hi, lo
+       and k.
+
+       * java/lang/e_rem_pio2.c (__ieee754_rem_pio2): Initialize
+       uninitialized variable z.
+
+       * gnu/java/net/natPlainDatagramSocketImplPosix.cc (mcastGrp): Ifdef
+       possible unused variables.
+
+       * gnu/java/nio/natPipeImplPosix.cc (init): Remove self.
+
+       * jawt.c: Include <stdlib.h> to fix implict declaration of malloc.
+
 2005-03-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
 
        PR libgcj/20292
index 5c76779d9dd02d78817bc18d65c3d367f25b0631..708f5421cea352811ddfaa0e317373ccab00bf13 100644 (file)
@@ -429,9 +429,12 @@ gnu::java::net::PlainDatagramSocketImpl::mcastGrp (::java::net::InetAddress *ine
 {
   // FIXME: implement use of NetworkInterface
 
-  union McastReq u;
   jbyteArray haddress = inetaddr->addr;
+#if HAVE_STRUCT_IP_MREQ || HAVE_STRUCT_IPV6_MREQ
+  union McastReq u;
   jbyte *bytes = elements (haddress);
+#endif
+
   int len = haddress->length;
   int level, opname;
   const char *ptr;
index 7285dbac40b4f4ecb61e6528cbbdf46fe5bebdd4..1726dc70f6c1fe50f40783ebd09be5efb14acc0e 100644 (file)
@@ -23,8 +23,9 @@ details.  */
 #include <java/nio/channels/spi/SelectorProvider.h>
 
 void
-gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl *self,
-                             ::java::nio::channels::spi::SelectorProvider* /*provider*/)
+gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl*, /*self*/
+                             ::java::nio::channels::spi::SelectorProvider*
+                             /*provider*/)
 {
   int filedes [2];
 
index 9a398b43d98116ca277ea78049b1c37e5c2ec9f5..6d5ad3b422e86b949f549aac27595119d42a9274 100644 (file)
@@ -245,15 +245,16 @@ _DEFUN (_dtoa_r,
                to hold the suppressed trailing zeros.
        */
 
-  int bbits, b2, b5, be, dig, i, ieps, ilim, ilim0, ilim1, j, j1, k, k0,
-    k_check, leftright, m2, m5, s2, s5, spec_case, try_quick;
+  int bbits, b2, b5, be, dig, i, ieps, ilim0, j, j1, k, k0,
+    k_check, leftright, m2, m5, s2, s5, try_quick;
+  int ilim = 0, ilim1 = 0, spec_case = 0;
   union double_union d, d2, eps;
   long L;
 #ifndef Sudden_Underflow
   int denorm;
   unsigned long x;
 #endif
-  _Jv_Bigint *b, *b1, *delta, *mlo, *mhi, *S;
+  _Jv_Bigint *b, *b1, *delta, *mlo = NULL, *mhi, *S;
   double ds;
   char *s, *s0;
 
index 6b131e65a266968db0a120609ea87c2aa443776f..90fc77ffc3be671909f27ad45e82803416fcc18e 100644 (file)
@@ -75,7 +75,7 @@ qS4 =  7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
        double x;
 #endif
 {
-       double t,w,p,q,c,r,s;
+       double t = 0., w, p, q, c, r, s;
        int32_t hx,ix;
        GET_HIGH_WORD(hx,x);
        ix = hx&0x7fffffff;
index e11ca8b38565af00e42474538cb2e4c70972bf98..ad37f86b0297809608ab124b73cc44f5bb49d85d 100644 (file)
@@ -108,8 +108,8 @@ P5   =  4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */
        double x;
 #endif
 {
-       double y,hi,lo,c,t;
-       int32_t k,xsb;
+       double y,hi = 0., lo = 0.,c,t;
+       int32_t k = 0, xsb;
        uint32_t hx;
 
        GET_HIGH_WORD(hx,x);
index 6d3fd19a48cc4a91efb299758ff4a93edc34e9d5..543234c60c54f626bf27d6ff829a7fa5ef004dba 100644 (file)
@@ -89,7 +89,7 @@ pio2_3t =  8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
        double x,y[];
 #endif
 {
-       double z,w,t,r,fn;
+       double z = 0., w, t, r, fn;
        double tx[3];
        int32_t i,j,n,ix,hx;
        int e0,nx;
index 1777b1aae8af97b67fb70a32f90d1881e458b32a..b3e09124721d6d534d1f0dd75ab616d932d6228f 100644 (file)
@@ -118,7 +118,7 @@ _DEFUN (_strtod_r, (ptr, s00, se),
   unsigned long y, z;
   union double_union rv, rv0;
 
-  _Jv_Bigint *bb, *bb1, *bd, *bd0, *bs, *delta;
+  _Jv_Bigint *bb = NULL, *bb1, *bd = NULL, *bd0, *bs = NULL, *delta = NULL;
   sign = nz0 = nz = 0;
   rv.d = 0.;
   for (s = s00;; s++)
index 08cd78cd581d54074a27997ffb8df18098cf3acc..c0d65b80e528c51e45df8072e98500bd00e098dd 100644 (file)
@@ -7,7 +7,7 @@
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2, or (at your option)
    any later version.
+
    GNU Classpath is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -35,7 +35,7 @@
    obligated to do so.  If you do not wish to do so, delete this
    exception statement from your version. */
 
-
+#include <stdlib.h>
 #include <jni.h>
 #include <jawt.h>
 #include <jawt_md.h>