diff options
author | David McCullough <davidm@snapgear.com> | 2002-08-09 13:03:00 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2002-08-09 13:03:00 +0000 |
commit | bea67a752df6f8e1dfce75592fb7c371e5c8a212 (patch) | |
tree | c9b547baafaae100ab2c34ef6930ba48a1a5a736 /libm | |
parent | 54e4a312a7ac8609604d922950d29f618d1cb04c (diff) | |
download | uClibc-alpine-bea67a752df6f8e1dfce75592fb7c371e5c8a212.tar.bz2 uClibc-alpine-bea67a752df6f8e1dfce75592fb7c371e5c8a212.tar.xz |
Fix a number of compile time warnings so that uClibc will build with -Werror using
a 3.0.4 version of the sh-linux-gcc compiler.
Diffstat (limited to 'libm')
-rw-r--r-- | libm/e_asin.c | 2 | ||||
-rw-r--r-- | libm/e_exp.c | 4 | ||||
-rw-r--r-- | libm/e_rem_pio2.c | 2 | ||||
-rw-r--r-- | libm/s_expm1.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libm/e_asin.c b/libm/e_asin.c index 46b93d8c0..210fdbf3b 100644 --- a/libm/e_asin.c +++ b/libm/e_asin.c @@ -77,7 +77,7 @@ qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */ double x; #endif { - double t,w,p,q,c,r,s; + double t=0.0,w,p,q,c,r,s; int32_t hx,ix; GET_HIGH_WORD(hx,x); ix = hx&0x7fffffff; diff --git a/libm/e_exp.c b/libm/e_exp.c index 734166733..f92910e85 100644 --- a/libm/e_exp.c +++ b/libm/e_exp.c @@ -111,8 +111,8 @@ P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */ #endif { double y; - double hi = 0; - double lo = 0; + double hi = 0.0; + double lo = 0.0; double c; double t; int32_t k=0; diff --git a/libm/e_rem_pio2.c b/libm/e_rem_pio2.c index 85dbaac6d..e98c699cd 100644 --- a/libm/e_rem_pio2.c +++ b/libm/e_rem_pio2.c @@ -90,7 +90,7 @@ pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */ double x,y[]; #endif { - double z=0,w,t,r,fn; + double z=0.0,w,t,r,fn; double tx[3]; int32_t e0,i,j,nx,n,ix,hx; u_int32_t low; diff --git a/libm/s_expm1.c b/libm/s_expm1.c index 79783d9ba..5e7e9d84f 100644 --- a/libm/s_expm1.c +++ b/libm/s_expm1.c @@ -138,7 +138,7 @@ Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */ double x; #endif { - double y,hi,lo,c=0,t,e,hxs,hfx,r1; + double y,hi,lo,c=0.0,t,e,hxs,hfx,r1; int32_t k,xsb; u_int32_t hx; |