* lib/vasnprintf.c (IF_LINT): Define.
(scale10_round_decimal_long_double):
Use it to avoid a "may be used uninitialized" warning.
+2008-05-21 Jim Meyering <meyering@redhat.com>
+
+ 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.
+
2008-05-21 Simon Josefsson <simon@josefsson.org>
* m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
# include "fpucw.h"
#endif
+/* Use this to suppress gcc's `...may be used before initialized' warnings. */
+#ifdef lint
+# define IF_LINT(Code) Code
+#else
+# define IF_LINT(Code) /* empty */
+#endif
+
#if HAVE_WCHAR_T
# if HAVE_WCSLEN
# define local_wcslen wcslen
static char *
scale10_round_decimal_long_double (long double x, int n)
{
- int e;
+ int e IF_LINT(= 0);
mpn_t m;
void *memory = decode_long_double (x, &e, &m);
return scale10_round_decimal_decoded (e, m, memory, n);