Skip to content

Commit

Permalink
Fix ldbl-128ibm "set but not used" warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Dec 4, 2012
1 parent c8df52e commit b37984a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2012-12-04 Joseph Myers <joseph@codesourcery.com>

* sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
variable LX with __attribute__ ((unused)).
* sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
with __attribute__ ((unused)).

2012-12-04 David S. Miller <davem@abraco.davemloft.net>

* sysdeps/generic/memcopy.h: Add multiple inclusion protection.
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/ieee754/ldbl-128ibm/e_atanhl.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ __ieee754_atanhl(long double x)
{
long double t;
int64_t hx,ix;
u_int64_t lx;
u_int64_t lx __attribute__ ((unused));
GET_LDOUBLE_WORDS64(hx,lx,x);
ix = hx&0x7fffffffffffffffLL;
if (ix >= 0x3ff0000000000000LL) { /* |x|>=1 */
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ int32_t __ieee754_rem_pio2l(long double x, long double *y)
double tx[8];
int exp;
int64_t n, ix, hx, ixd;
u_int64_t lx, lxd;
u_int64_t lx __attribute__ ((unused));
u_int64_t lxd;

GET_LDOUBLE_WORDS64 (hx, lx, x);
ix = hx & 0x7fffffffffffffffLL;
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/ieee754/ldbl-128ibm/s_isnanl.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ static char rcsid[] = "$NetBSD: $";
int
___isnanl (long double x)
{
int64_t hx,lx;
int64_t hx;
int64_t lx __attribute__ ((unused));
GET_LDOUBLE_WORDS64(hx,lx,x);
hx &= 0x7fffffffffffffffLL;
hx = 0x7ff0000000000000LL - hx;
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/ieee754/ldbl-128ibm/s_logbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
long double
__logbl (long double x)
{
int64_t lx, hx, rhx;
int64_t hx, rhx;
int64_t lx __attribute__ ((unused));

GET_LDOUBLE_WORDS64 (hx, lx, x);
hx &= 0x7fffffffffffffffLL; /* high |x| */
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ static char rcsid[] = "$NetBSD: $";
long double __nextafterl(long double x, long double y)
{
int64_t hx,hy,ihx,ihy,ilx;
u_int64_t lx,ly;
u_int64_t lx;
u_int64_t ly __attribute__ ((unused));

GET_LDOUBLE_WORDS64(hx,lx,x);
GET_LDOUBLE_WORDS64(hy,ly,y);
Expand Down

0 comments on commit b37984a

Please sign in to comment.