about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-20 14:26:07 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-20 14:26:07 +0000
commitcf9a5d186154b1ad4a8459fafa135dcd822e5f3b (patch)
tree5d5f865fb6bfa04b77f9acc682cd3e2d4ce27c16
parentf59cba71d8486e4749742f1a703424a08a2be8a7 (diff)
downloadglibc-cf9a5d186154b1ad4a8459fafa135dcd822e5f3b.tar.gz
glibc-cf9a5d186154b1ad4a8459fafa135dcd822e5f3b.tar.xz
glibc-cf9a5d186154b1ad4a8459fafa135dcd822e5f3b.zip
Fix set-but-not-used warnings in ldbl-128 nearbyintl, rintl.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/ieee754/ldbl-128/s_nearbyintl.c2
-rw-r--r--sysdeps/ieee754/ldbl-128/s_rintl.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a2c45d212..44a0ff1f23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-11-20  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
+	variable I1 with __attribute__ ((unused)).
+	* sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
+
 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
 
 	* stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
diff --git a/sysdeps/ieee754/ldbl-128/s_nearbyintl.c b/sysdeps/ieee754/ldbl-128/s_nearbyintl.c
index b335adcaa1..d2afc10a5a 100644
--- a/sysdeps/ieee754/ldbl-128/s_nearbyintl.c
+++ b/sysdeps/ieee754/ldbl-128/s_nearbyintl.c
@@ -37,7 +37,7 @@ long double __nearbyintl(long double x)
 {
 	fenv_t env;
 	int64_t i0,j0,sx;
-	u_int64_t i1;
+	u_int64_t i1 __attribute__ ((unused));
 	long double w,t;
 	GET_LDOUBLE_WORDS64(i0,i1,x);
 	sx = (((u_int64_t)i0)>>63);
diff --git a/sysdeps/ieee754/ldbl-128/s_rintl.c b/sysdeps/ieee754/ldbl-128/s_rintl.c
index 088d3c4d59..ae2142b2c9 100644
--- a/sysdeps/ieee754/ldbl-128/s_rintl.c
+++ b/sysdeps/ieee754/ldbl-128/s_rintl.c
@@ -39,7 +39,7 @@ TWO112[2]={
 long double __rintl(long double x)
 {
 	int64_t i0,j0,sx;
-	u_int64_t i1;
+	u_int64_t i1 __attribute__ ((unused));
 	long double w,t;
 	GET_LDOUBLE_WORDS64(i0,i1,x);
 	sx = (((u_int64_t)i0)>>63);