about summary refs log tree commit diff
path: root/stdio-common/_itoa.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-16 14:08:47 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-16 14:08:47 -0700
commitdb1ee0a836f4938dc14014c6341fcb11ef66e929 (patch)
tree88f4765a244382aba3faf23c2d898e317d0758b5 /stdio-common/_itoa.c
parent30f696374d434578a159712552f3da533f02e8dd (diff)
downloadglibc-db1ee0a836f4938dc14014c6341fcb11ef66e929.tar.gz
glibc-db1ee0a836f4938dc14014c6341fcb11ef66e929.tar.xz
glibc-db1ee0a836f4938dc14014c6341fcb11ef66e929.zip
Suppress -Wunused-but-set warnings in GMP code.
Diffstat (limited to 'stdio-common/_itoa.c')
-rw-r--r--stdio-common/_itoa.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/stdio-common/_itoa.c b/stdio-common/_itoa.c
index ebb3e857c6..4c588d989d 100644
--- a/stdio-common/_itoa.c
+++ b/stdio-common/_itoa.c
@@ -206,7 +206,7 @@ _itoa (value, buflim, base, upper_case)
     {
 # define RUN_2N(BITS) \
       do								      \
-        {								      \
+	{								      \
 	  /* `unsigned long long int' always has 64 bits.  */		      \
 	  mp_limb_t work_hi = value >> (64 - BITS_PER_MP_LIMB);		      \
 									      \
@@ -264,7 +264,8 @@ _itoa (value, buflim, base, upper_case)
 	if (brec->flag)
 	  while (value != 0)
 	    {
-	      mp_limb_t quo, rem, x, dummy;
+	      mp_limb_t quo, rem, x;
+	      mp_limb_t __attribute__ ((unused));
 
 	      umul_ppmm (x, dummy, value, base_multiplier);
 	      quo = (x + ((value - x) >> 1)) >> (brec->post_shift - 1);
@@ -275,7 +276,8 @@ _itoa (value, buflim, base, upper_case)
 	else
 	  while (value != 0)
 	    {
-	      mp_limb_t quo, rem, x, dummy;
+	      mp_limb_t quo, rem, x;
+	      mp_limb_t __attribute__ ((unused));
 
 	      umul_ppmm (x, dummy, value, base_multiplier);
 	      quo = x >> brec->post_shift;
@@ -401,7 +403,8 @@ _itoa (value, buflim, base, upper_case)
 	    if (brec->flag)
 	      while (ti != 0)
 		{
-		  mp_limb_t quo, rem, x, dummy;
+		  mp_limb_t quo, rem, x;
+		  mp_limb_t dummy __attribute__ ((unused));
 
 		  umul_ppmm (x, dummy, ti, base_multiplier);
 		  quo = (x + ((ti - x) >> 1)) >> (brec->post_shift - 1);
@@ -413,7 +416,8 @@ _itoa (value, buflim, base, upper_case)
 	    else
 	      while (ti != 0)
 		{
-		  mp_limb_t quo, rem, x, dummy;
+		  mp_limb_t quo, rem, x;
+		  mp_limb_t dummy __attribute__ ((unused));
 
 		  umul_ppmm (x, dummy, ti, base_multiplier);
 		  quo = x >> brec->post_shift;