GNU bug report logs - #58966
[Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()

Previous Next

Package: emacs;

Reported by: Jacob Faibussowitsch <jacob.fai <at> gmail.com>

Date: Wed, 2 Nov 2022 13:57:02 UTC

Severity: minor

Full log


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 58966 <at> debbugs.gnu.org, jacob.fai <at> gmail.com
Subject: bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()
Date: Thu, 03 Nov 2022 10:00:59 +0100
Eli Zaretskii <eliz <at> 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?




This bug report was last modified 2 years and 220 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.