This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix ldbl-128ibm "set but not used" warnings
- From: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Tue, 4 Dec 2012 15:17:29 -0600
- Subject: Re: Fix ldbl-128ibm "set but not used" warnings
- References: <Pine.LNX.4.64.1212042114070.17916@digraph.polyomino.org.uk>
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.