aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-11-12 02:15:07 -0500
committerUlrich Drepper <drepper@gmail.com>2011-11-12 02:15:07 -0500
commit0c822ef9883c8c28929734eceb104729ba9e62e0 (patch)
tree91a2efb738c84977bc29ffc0843b66b423935bac
parentca743930cdd78629f1a246b8b7eff3f01f3b3dbe (diff)
downloadglibc-0c822ef9883c8c28929734eceb104729ba9e62e0.zip
glibc-0c822ef9883c8c28929734eceb104729ba9e62e0.tar.gz
glibc-0c822ef9883c8c28929734eceb104729ba9e62e0.tar.bz2
Avoid warnings about unused variables in 96-bit hypotl
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/ieee754/ldbl-96/e_hypotl.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b61bbf..ceea48e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-11-12 Ulrich Drepper <drepper@gmail.com>
+ * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
+ from unused variable.
+
* sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
DWARF definitions.
* sysdeps/generic/dwarf2.h: Don't define enums when using the file
diff --git a/sysdeps/ieee754/ldbl-96/e_hypotl.c b/sysdeps/ieee754/ldbl-96/e_hypotl.c
index a59320b..5e0b37e 100644
--- a/sysdeps/ieee754/ldbl-96/e_hypotl.c
+++ b/sysdeps/ieee754/ldbl-96/e_hypotl.c
@@ -70,7 +70,8 @@
k=0;
if(__builtin_expect(ea > 0x5f3f,0)) { /* a>2**8000 */
if(ea == 0x7fff) { /* Inf or NaN */
- u_int32_t exp,high,low;
+ u_int32_t exp __attribute__ ((unused));
+ u_int32_t high,low;
w = a+b; /* for sNaN */
GET_LDOUBLE_WORDS(exp,high,low,a);
if(((high&0x7fffffff)|low)==0) w = a;
@@ -85,7 +86,8 @@
}
if(__builtin_expect(eb < 0x20bf, 0)) { /* b < 2**-8000 */
if(eb == 0) { /* subnormal b or 0 */
- u_int32_t exp,high,low;
+ u_int32_t exp __attribute__ ((unused));
+ u_int32_t high,low;
GET_LDOUBLE_WORDS(exp,high,low,b);
if((high|low)==0) return a;
SET_LDOUBLE_WORDS(t1, 0x7ffd, 0, 0); /* t1=2^16382 */