Fix ldbl-128ibm "set but not used" warnings
David Miller
davem@davemloft.net
Tue Dec 4 21:26:00 GMT 2012
From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Tue, 4 Dec 2012 21:15:08 +0000
> Several ldbl-128ibm functions have "set but not used" compiler
> warnings because of the use of a macro to extract parts of a
> floating-point number, where then only some of the parts get used in
> the function. This patch fixes the warnings (tested powerpc32) by
> marking those variables with __attribute__ ((unused)).
>
> 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)).
I'm fine with this.
More information about the Libc-alpha
mailing list