* configure.ac (CHECK_LISP_OBJECT_TYPE): Add
-Wno-deprecated-declarations for darwin.
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])