GNU bug report logs -
#58966
[Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()
Previous Next
Full log
View this message in rfc822 format
> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> Cc: jacob.fai <at> gmail.com, 58966 <at> debbugs.gnu.org
> 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?
Yes, but perhaps condition that on the version of the
compiler/Xcode/whatever? I mean, could this warning be useful in some
other cases?
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.