bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()


From: Gerd Möllmann
Subject: bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()
Date: Thu, 03 Nov 2022 10:00:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii <eliz@gnu.org> writes:

> If no better ideas come up, find a way to disable this bogus warning.
> configure.ac has a block of lines that disable various warnings under
> certain conditions, starting around line 1100.  There are specific
> warnings disabled when the compiler is clang.  Add something there to
> shut up this warning.

Thanks.  That would be

diff --git a/configure.ac b/configure.ac
index 63cb9c412e..c9d1eb5709 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1144,6 +1144,12 @@ AC_DEFUN
     gl_WARN_ADD([-Wno-int-in-bool-context])
   fi
 
+  # Suppress deprecation warnings from using sprintf variants,
+  # starting with Xcode 14.1 on macOS 13.
+  if test $opsys = darwin; then
+    gl_WARN_ADD([-Wno-deprecated-declarations])
+  fi
+
   # This causes too much noise in the MinGW build
   if test $opsys = mingw32; then
     gl_WARN_ADD([-Wno-pointer-sign])

Ok to install?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]