From d16494cffbed79a916482558ae5ed1bdcc67c88d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Thu, 3 Nov 2022 10:39:37 +0100 Subject: [PATCH] Suppress deprecation warnings on macOS (bug#58966) * configure.ac (CHECK_LISP_OBJECT_TYPE): Add -Wno-deprecated-declarations for darwin. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) 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]) -- 2.39.5