eliminate unused variable warnings
Matt Kraai
kraai@alumni.cmu.edu
Mon May 19 00:56:00 GMT 2003
Howdy,
If _IEEE_LIBM is defined, GCC warns that o_threshold and
u_threshold are unused. So don't define them in that case.
This patch has been bootstrapped and regression tested on
powerpc-unknown-linux-gnu.
I only have commit access to the GCC repository.
--
Matt Kraai <kraai@alumni.cmu.edu>
Debian GNU/Linux Peon
* java/lang/w_exp.c (o_threshold, u_threshold): Define only
if _IEEE_LIBM is undefined.
Index: libjava/java/lang/w_exp.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/w_exp.c,v
retrieving revision 1.1.1.1
diff -c -3 -p -r1.1.1.1 w_exp.c
*** libjava/java/lang/w_exp.c 7 Apr 1999 14:52:39 -0000 1.1.1.1
--- libjava/java/lang/w_exp.c 19 May 2003 00:49:01 -0000
*************** PORTABILITY
*** 65,70 ****
--- 65,72 ----
#ifndef _DOUBLE_IS_32BITS
+ #ifndef _IEEE_LIBM
+
#ifdef __STDC__
static const double
#else
*************** static double
*** 72,77 ****
--- 74,81 ----
#endif
o_threshold= 7.09782712893383973096e+02, /* 0x40862E42, 0xFEFA39EF */
u_threshold= -7.45133219101941108420e+02; /* 0xc0874910, 0xD52D3051 */
+
+ #endif
#ifdef __STDC__
double exp(double x) /* wrapper exp */
More information about the Java-patches
mailing list