fix unused variable warnings in new nextafter/nexttoward code

apparently initializing a variable is not "using" it but assigning to
it is "using" it. i don't really like this fix, but it's better than
trying to make a bigger cleanup just before a release, and it should
work fine (tested against nsz's math tests).
This commit is contained in:
Rich Felker 2012-05-06 14:48:20 -04:00
commit 4e597feef0
5 changed files with 12 additions and 6 deletions

View file

@ -31,7 +31,8 @@ float nexttowardf(float x, long double y)
return x + x;
/* raise underflow if ux.value is subnormal or zero */
if (e == 0) {
volatile float z = x*x + ux.value*ux.value;
volatile float z;
z = x*x + ux.value*ux.value;
}
return ux.value;
}