This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix "set but not used" warnings for X##_s in soft-fp
- From: David Miller <davem at davemloft dot net>
- To: joseph at codesourcery dot com
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 05 Dec 2012 13:33:32 -0500 (EST)
- Subject: Re: Fix "set but not used" warnings for X##_s in soft-fp
- References: <Pine.LNX.4.64.1212051810030.1819@digraph.polyomino.org.uk>
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.