From b1d7d87cb9683e6f0dcef5bb8b6583cac0be8748 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 5 Mar 2023 16:25:49 -0800 Subject: 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. --- doc/posix-functions/sprintf.texi | 6 +++--- doc/posix-functions/vsprintf.texi | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'doc') 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 -- cgit v1.2.1