Fix "set but not used" warnings for X##_s in soft-fp
David Miller
davem@davemloft.net
Wed Dec 5 18:33:00 GMT 2012
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.
More information about the Libc-alpha
mailing list