summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-03-05 16:25:49 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-03-05 16:26:45 -0800
commitb1d7d87cb9683e6f0dcef5bb8b6583cac0be8748 (patch)
tree7463a937246757ee9b38899a4de814cf2e79e22a /doc
parente3bf6b879e075d18fcc5af41159a1e2b2c347dd4 (diff)
downloadgnulib-b1d7d87cb9683e6f0dcef5bb8b6583cac0be8748.tar.gz
stdio: suppress macOS 13 sprintf warnings
* lib/stdio.in.h (_POSIX_C_SOURCE, _GL_DEFINED__POSIX_C_SOURCE): Suppress deprecation warnings for sprintf and vsprintf that were introduced in macOS 13. These are not useful for Gnulib itself, and are more likely than not to be merely an annoyance for Gnulib-using code.
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-functions/sprintf.texi6
-rw-r--r--doc/posix-functions/vsprintf.texi6
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/posix-functions/sprintf.texi b/doc/posix-functions/sprintf.texi
index e63f073e0c..0ced69dc57 100644
--- a/doc/posix-functions/sprintf.texi
+++ b/doc/posix-functions/sprintf.texi
@@ -66,6 +66,9 @@ Solaris 10.
@item
This function can crash in out-of-memory conditions on some platforms:
FreeBSD 13.0, NetBSD 5.0.
+@item
+The compiler warns that this function is deprecated:
+macOS 13.0.
@end itemize
Portability problems not fixed by Gnulib:
@@ -82,7 +85,4 @@ glibc and others, on x86, x86_64, IA-64 CPUs.
When formatting an integer with grouping flag, this function inserts thousands
separators even in the "C" locale on some platforms:
NetBSD 5.1.
-@item
-The compiler warns that this function is deprecated:
-macOS 13.0
@end itemize
diff --git a/doc/posix-functions/vsprintf.texi b/doc/posix-functions/vsprintf.texi
index 4e30c483fe..0ddcdfca12 100644
--- a/doc/posix-functions/vsprintf.texi
+++ b/doc/posix-functions/vsprintf.texi
@@ -66,6 +66,9 @@ Solaris 10.
@item
This function can crash in out-of-memory conditions on some platforms:
FreeBSD 13.0, NetBSD 5.0.
+@item
+The compiler warns that this function is deprecated:
+macOS 13.0.
@end itemize
Portability problems not fixed by Gnulib:
@@ -82,7 +85,4 @@ glibc and others, on x86, x86_64, IA-64 CPUs.
When formatting an integer with grouping flag, this function inserts thousands
separators even in the "C" locale on some platforms:
NetBSD 5.1.
-@item
-The compiler warns that this function is deprecated:
-macOS 13.0
@end itemize