Mercurial > gnulib
changeset 10101:daad35fae43c
avoid another warning from gcc
* lib/vasnprintf.c (scale10_round_decimal_double):
Use IF_LINT to avoid another "may be used uninitialized" warning.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Wed, 21 May 2008 23:09:59 +0200 |
parents | 369c11a9858d |
children | 8d61236d099c |
files | ChangeLog lib/vasnprintf.c |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed May 21 18:38:12 2008 +0200 +++ b/ChangeLog Wed May 21 23:09:59 2008 +0200 @@ -4,6 +4,7 @@ * lib/vasnprintf.c (IF_LINT): Define. (scale10_round_decimal_long_double): Use it to avoid a "may be used uninitialized" warning. + (scale10_round_decimal_double): Likewise. 2008-05-21 Simon Josefsson <simon@josefsson.org>
--- a/lib/vasnprintf.c Wed May 21 18:38:12 2008 +0200 +++ b/lib/vasnprintf.c Wed May 21 23:09:59 2008 +0200 @@ -1230,7 +1230,7 @@ static char * scale10_round_decimal_double (double x, int n) { - int e; + int e IF_LINT(= 0); mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n);