* lib/vasnprintf.c: Add #pragma GCC diagnostic.
+2023-05-18 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf, c-vasnprintf: Silence gcc warning.
+ * lib/vasnprintf.c: Add #pragma GCC diagnostic.
+
2023-05-18 Bruno Haible <bruno@clisp.org>
nstrftime: Silence gcc warning.
return roomptr;
}
+/* Avoid pointless GCC warning "argument 1 value '18446744073709551615' exceeds
+ maximum object size 9223372036854775807", triggered by the use of xsum as
+ argument of malloc. */
+# if __GNUC__ >= 7
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Walloc-size-larger-than="
+# endif
+
/* Convert a bignum a >= 0, multiplied with 10^extra_zeroes, to decimal
representation.
Destroys the contents of a.
return c_ptr;
}
+# if __GNUC__ >= 7
+# pragma GCC diagnostic pop
+# endif
+
# if NEED_PRINTF_LONG_DOUBLE
/* Assuming x is finite and >= 0: