This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix set-but-not-used warnings in ldbl-128 nearbyintl, rintl
- From: Andreas Jaeger <aj at suse dot com>
- To: libc-alpha at sourceware dot org
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Tue, 20 Nov 2012 09:01:54 +0100
- Subject: Re: Fix set-but-not-used warnings in ldbl-128 nearbyintl, rintl
- References: <Pine.LNX.4.64.1211200311480.26267@digraph.polyomino.org.uk>
On Tuesday, November 20, 2012 03:12:56 Joseph S. Myers wrote:
> The ldbl-128 versions of nearybintl and rintl define variables i1 for
> output use by the GET_LDOUBLE_WORDS64 macro. Nothing then uses the
> values that macro puts in those variables, resulting in
> set-but-not-used warnings.
>
> This patch marks those variables with __attribute__ ((unused)), as
> used for various similar cases. Tested on MIPS that this does
> eliminate those warnings.
Ok, thanks,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126