Initialize variable e Don't use printf %n. https://git.savannah.gnu.org/cgit/gnulib.git/commit/lib/vasnprintf.c?id=b954346c6101860c7b462d1b286641d1307afd6c Index: lib/vasnprintf.c --- lib/vasnprintf.c.orig +++ lib/vasnprintf.c @@ -1375,7 +1375,7 @@ scale10_round_decimal_decoded (int e, mpn_t m, void *m static char * scale10_round_decimal_long_double (long double x, int n) { - int e IF_LINT(= 0); + int e = 0; mpn_t m; void *memory = decode_long_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -1393,7 +1393,7 @@ scale10_round_decimal_long_double (long double x, int static char * scale10_round_decimal_double (double x, int n) { - int e IF_LINT(= 0); + int e = 0; mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -5117,11 +5117,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, #endif *fbp = dp->conversion; #if USE_SNPRINTF -# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \ - && !defined __UCLIBC__) \ - || (defined __APPLE__ && defined __MACH__) \ - || defined __ANDROID__ \ - || (defined _WIN32 && ! defined __CYGWIN__)) +# if 0 fbp[1] = '%'; fbp[2] = 'n'; fbp[3] = '\0';