This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Quash warning
- From: Marek Polacek <polacek at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 17 Aug 2012 23:04:44 +0200
- Subject: [PATCH] Quash warning
This quashes one unused-but-set warning. Ok?
2012-08-17 Marek Polacek <polacek@redhat.com>
* sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
--- libc/sysdeps/ieee754/ldbl-96/s_sincosl.c.mp 2012-08-17 22:41:53.912016765 +0200
+++ libc/sysdeps/ieee754/ldbl-96/s_sincosl.c 2012-08-17 22:42:26.699116993 +0200
@@ -1,5 +1,5 @@
/* Compute sine and cosine of argument.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -25,7 +25,7 @@
void
__sincosl (long double x, long double *sinx, long double *cosx)
{
- int32_t se, i0, i1;
+ int32_t se, i0, i1 __attribute__ ((unused));
/* High word of x. */
GET_LDOUBLE_WORDS (se, i0, i1, x);
Marek