diff options
author | Andreas Jaeger <aj@suse.de> | 2001-06-22 15:03:32 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2001-06-22 15:03:32 +0000 |
commit | 37695e8f0f78b0545aaefdce856571b92ef4dce7 (patch) | |
tree | 67c656d32098da730bec87e8c26d7102ca6b1339 | |
parent | e15df0bbd7b7a6d9973f691c850a330b3c9676cf (diff) | |
download | glibc-37695e8f0f78b0545aaefdce856571b92ef4dce7.zip glibc-37695e8f0f78b0545aaefdce856571b92ef4dce7.tar.gz glibc-37695e8f0f78b0545aaefdce856571b92ef4dce7.tar.bz2 |
Update.
* sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Add parenthese
to avoid warnings.
* sysdeps/i386/fpu/e_expl.c (__ieee754_expl): Remove unused
variable.
Add unused attributes to avoid warnings.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | sysdeps/i386/fpu/e_expl.c | 6 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_nextafterl.c | 4 |
3 files changed, 12 insertions, 5 deletions
@@ -1,5 +1,12 @@ 2001-06-22 Andreas Jaeger <aj@suse.de> + * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Add parenthese + to avoid warnings. + + * sysdeps/i386/fpu/e_expl.c (__ieee754_expl): Remove unused + variable. + Add unused attributes to avoid warnings. + * elf/reldep4mod4.c: Add prototype to avoid warning. * elf/reldep4mod2.c: Likewise. diff --git a/sysdeps/i386/fpu/e_expl.c b/sysdeps/i386/fpu/e_expl.c index 3802342..37d8d10 100644 --- a/sysdeps/i386/fpu/e_expl.c +++ b/sysdeps/i386/fpu/e_expl.c @@ -24,13 +24,13 @@ #include <math_private.h> -static long double c0 = 1.44268798828125L; -static long double c1 = 7.05260771340735992468e-6L; +static long double __attribute__ ((unused)) c0 = 1.44268798828125L; +static long double __attribute__ ((unused)) c1 = 7.05260771340735992468e-6L; long double __ieee754_expl (long double x) { - long double res, t; + long double res; /* I added the following ugly construct because expl(+-Inf) resulted in NaN. The ugliness results from the bright minds at Intel. diff --git a/sysdeps/i386/fpu/s_nextafterl.c b/sysdeps/i386/fpu/s_nextafterl.c index a6ead79..eaf3b0b 100644 --- a/sysdeps/i386/fpu/s_nextafterl.c +++ b/sysdeps/i386/fpu/s_nextafterl.c @@ -47,8 +47,8 @@ static char rcsid[] = "$NetBSD: $"; /* Intel's extended format has the normally implicit 1 explicit present. Sigh! */ - if(((ix==0x7fff)&&((hx&0x7fffffff|lx)!=0)) || /* x is nan */ - ((iy==0x7fff)&&((hy&0x7fffffff|ly)!=0))) /* y is nan */ + if(((ix==0x7fff)&&(((hx&0x7fffffff)|lx)!=0)) || /* x is nan */ + ((iy==0x7fff)&&(((hy&0x7fffffff)|ly)!=0))) /* y is nan */ return x+y; if(x==y) return y; /* x=y, return y */ if((ix|hx|lx)==0) { /* x == 0 */ |