mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Fix more set-but-not-used warnings in _itowa.c.
This commit is contained in:
parent
ecd4caf978
commit
be14d48f5a
@ -1,5 +1,8 @@
|
||||
2012-11-19 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
|
||||
DUMMY variables with __attribute__ ((unused)).
|
||||
|
||||
* bits/byteswap.h: Include <bits/types.h>.
|
||||
(__bswap_64): Use __uint64_t instead of unsigned long long int.
|
||||
|
||||
|
@ -159,7 +159,8 @@ _itowa (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 dummy __attribute__ ((unused));
|
||||
|
||||
umul_ppmm (x, dummy, value, base_multiplier);
|
||||
quo = (x + ((value - x) >> 1)) >> (brec->post_shift - 1);
|
||||
@ -170,7 +171,8 @@ _itowa (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 dummy __attribute__ ((unused));
|
||||
|
||||
umul_ppmm (x, dummy, value, base_multiplier);
|
||||
quo = x >> brec->post_shift;
|
||||
|
Loading…
Reference in New Issue
Block a user