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 "set but not used" warnings for X##_s in soft-fp


From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Wed, 5 Dec 2012 18:10:32 +0000

> In soft-fp, the macro _FP_DECL declares one of the variables it
> declares, X##_c, with __attribute__ ((unused)), since some users may
> not use all three variables, but not another X##_s.  However,
> unordsf2.c and unorddf2.c do not use this variable, resulting in "set
> but not used" warnings for it.  This patch fixes these warnings
> (tested powerpc-nofpu) by using the attribute on X##_s as well.
> 
> 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
> 	((unused)).

Thanks for fixing this, please install.


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