summaryrefslogtreecommitdiff
path: root/stdio-common/_itowa.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/_itowa.c
parent30f696374d434578a159712552f3da533f02e8dd (diff)
downloadglibc-db1ee0a836f4938dc14014c6341fcb11ef66e929.tar.gz
Suppress -Wunused-but-set warnings in GMP code.
Diffstat (limited to 'stdio-common/_itowa.c')
-rw-r--r--stdio-common/_itowa.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/stdio-common/_itowa.c b/stdio-common/_itowa.c
index 9381d33b6c..6561ee1585 100644
--- a/stdio-common/_itowa.c
+++ b/stdio-common/_itowa.c
@@ -1,5 +1,5 @@
/* Internal function for converting integers to ASCII.
- Copyright (C) 1994-1996,1999,2000,2002,2007 Free Software Foundation, Inc.
+ Copyright (C) 1994-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Torbjorn Granlund <tege@matematik.su.se>
and Ulrich Drepper <drepper@gnu.org>.
@@ -102,7 +102,7 @@ _itowa (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); \
\
@@ -296,7 +296,8 @@ _itowa (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);
@@ -308,7 +309,8 @@ _itowa (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;