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: David Miller <davem at davemloft dot net>
- To: joseph at codesourcery dot com
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 04 Dec 2012 16:26:37 -0500 (EST)
- Subject: Re: Fix ldbl-128ibm "set but not used" warnings
- References: <Pine.LNX.4.64.1212042114070.17916@digraph.polyomino.org.uk>
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.