bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vasnprintf.c needs IF_LINT, too


From: Jim Meyering
Subject: Re: vasnprintf.c needs IF_LINT, too
Date: Wed, 21 May 2008 19:42:02 +0200

Jim Meyering <address@hidden> wrote:
> +     avoid a warning from gcc
> +     * lib/vasnprintf.c (IF_LINT): Define.
> +     (scale10_round_decimal_long_double):
> +     Use it to avoid a "may be used uninitialized" warning.

Same problem a few lines below:
(I'll commit this in a few hours if no one beats me to it)

diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c
index 9018c60..ec35109 100644
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -1230,7 +1230,7 @@ scale10_round_decimal_long_double (long double x, int n)
 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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]