From: Gerd Möllmann Date: Thu, 3 Nov 2022 09:39:37 +0000 (+0100) Subject: Suppress deprecation warnings on macOS (bug#58966) X-Git-Tag: emacs-29.0.90~1616^2~337 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d16494cffbed79a916482558ae5ed1bdcc67c88d;p=emacs.git Suppress deprecation warnings on macOS (bug#58966) * configure.ac (CHECK_LISP_OBJECT_TYPE): Add -Wno-deprecated-declarations for darwin. --- diff --git a/configure.ac b/configure.ac index 63cb9c412ec..c9d1eb57092 100644 --- a/configure.ac +++ b/configure.ac @@ -1144,6 +1144,12 @@ AS_IF([test $gl_gcc_warnings = no], 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])