Fix ldbl-128ibm "set but not used" warnings
Ryan S. Arnold
ryan.arnold@gmail.com
Tue Dec 4 21:17:00 GMT 2012
On Tue, Dec 4, 2012 at 3:15 PM, Joseph S. Myers <joseph@codesourcery.com> wrote:
> 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)).
These changes all look fine to me.
More information about the Libc-alpha
mailing list