This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix ldbl-128ibm "set but not used" warnings


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]