From: roland Date: Thu, 9 May 1996 00:09:22 +0000 (+0000) Subject: Thu May 9 01:24:00 1996 Ulrich Drepper X-Git-Tag: libc-960509~8 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=4599110c26608bc1d75f27c475e3c0567e01493b Thu May 9 01:24:00 1996 Ulrich Drepper * resolv/gethnamaddr.c: Prevent warning by preventing variable definition. * stdio-common/_itoa.c: Ditto. --- diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c index 87b4db1a6f..41be4fc10d 100644 --- a/resolv/gethnamaddr.c +++ b/resolv/gethnamaddr.c @@ -397,9 +397,12 @@ struct hostent * gethostbyname(name) const char *name; { + /* Moved #if line to here because declararing HP would lead to a + warining. --drepper@gnu */ +#if defined(AF_INET6) && defined(RES_TRY_INET6) struct hostent *hp; -#if defined(AF_INET6) && defined(RES_TRY_INET6) +/* #if defined(AF_INET6) && defined(RES_TRY_INET6) */ if (_res.options & RES_TRY_INET6) { hp = gethostbyname2(name, AF_INET6); if (hp) diff --git a/stdio-common/_itoa.c b/stdio-common/_itoa.c index f85b15b030..9d77b39005 100644 --- a/stdio-common/_itoa.c +++ b/stdio-common/_itoa.c @@ -260,9 +260,11 @@ _itoa (value, buflim, base, upper_case) Optimize for frequent cases of 32 bit numbers. */ if ((mp_limb_t) (value >> 32) >= 1) { +#if UDIV_TIME > 2 * UMUL_TIME || UDIV_NEEDS_NORMALIZATION int big_normalization_steps = brec->big.normalization_steps; - mp_limb_t big_base_norm = brec->big.base << big_normalization_steps; - + mp_limb_t big_base_norm + = brec->big.base << big_normalization_steps; +#endif if ((mp_limb_t) (value >> 32) >= brec->big.base) { mp_limb_t x1hi, x1lo, r;