* lib/strerror.c, lib/vasnprintf.c: Pacify clang 14 on macOS 12.6.
+2024-11-19 Paul Eggert <eggert@cs.ucla.edu>
+
+ strerror, vasnprintf: pacify clang 14 on macOS
+ * lib/strerror.c, lib/vasnprintf.c: Pacify clang 14 on macOS 12.6.
+
2024-11-19 Pádraig Brady <P@draigBrady.com>
unicodeio: avoid iconv issues for most ASCII characters
/* Use the system functions, not the gnulib overrides in this file. */
#undef sprintf
+/* macOS 12's "warning: 'sprintf' is deprecated" is pointless,
+ as sprintf is used safely here. */
+#if defined __APPLE__ && defined __MACH__ && _GL_GNUC_PREREQ (4, 2)
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
char *
strerror (int n)
#undef strerror
/* Here we need to call the native sprintf, not rpl_sprintf. */
#undef sprintf
+/* macOS 12's "warning: 'sprintf' is deprecated" is pointless,
+ as sprintf is used safely here. */
+#if defined __APPLE__ && defined __MACH__ && _GL_GNUC_PREREQ (4, 2)
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
/* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized"
warnings in this file. Use -Dlint to suppress them. */
#if defined GCC_LINT || defined lint