projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix unused variable warnings in new nextafter/nexttoward code
[musl]
/
src
/
math
/
nextafterl.c
diff --git
a/src/math/nextafterl.c
b/src/math/nextafterl.c
index
611ea53
..
c09d9dd
100644
(file)
--- a/
src/math/nextafterl.c
+++ b/
src/math/nextafterl.c
@@
-39,7
+39,8
@@
long double nextafterl(long double x, long double y)
return x + x;
/* raise underflow if ux.value is subnormal or zero */
if (ux.bits.exp == 0) {
return x + x;
/* raise underflow if ux.value is subnormal or zero */
if (ux.bits.exp == 0) {
- volatile float z = x*x + ux.value*ux.value;
+ volatile float z;
+ z = x*x + ux.value*ux.value;
}
return ux.value;
}
}
return ux.value;
}
@@
-77,7
+78,8
@@
long double nextafterl(long double x, long double y)
return x + x;
/* raise underflow if ux.value is subnormal or zero */
if (ux.bits.exp == 0) {
return x + x;
/* raise underflow if ux.value is subnormal or zero */
if (ux.bits.exp == 0) {
- volatile float z = x*x + ux.value*ux.value;
+ volatile float z;
+ z = x*x + ux.value*ux.value;
}
return ux.value;
}
}
return ux.value;
}