* lib/strerror_r.c (strerror_r): Silence -Wformat-truncation warning.
+2024-12-03 Bruno Haible <bruno@clisp.org>
+
+ strerror_r-posix: Silence gcc 14 warning.
+ * lib/strerror_r.c (strerror_r): Silence -Wformat-truncation warning.
+
2024-12-01 Bruno Haible <bruno@clisp.org>
announce-gen: Fix bug when accessing symlinks.
if (ret == EINVAL && !*buf)
{
+ /* gcc 14 produces a
+ "warning: 'Unknown error ' directive output truncated
+ writing 14 bytes into a region of size 2"
+ Thanks for the warning, but here the truncation is intentional. */
+#if _GL_GNUC_PREREQ (7, 1)
+# pragma GCC diagnostic ignored "-Wformat-truncation"
+#endif
#if defined __HAIKU__
/* For consistency with perror(). */
snprintf (buf, buflen, "Unknown Application Error (%d)", errnum);