all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: 58966@debbugs.gnu.org, jacob.fai@gmail.com
Subject: bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()
Date: Thu, 03 Nov 2022 11:15:33 +0200	[thread overview]
Message-ID: <838rks8klm.fsf@gnu.org> (raw)
In-Reply-To: <m2y1ssv2d0.fsf@Mini.fritz.box> (message from Gerd Möllmann on Thu, 03 Nov 2022 10:00:59 +0100)

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: jacob.fai@gmail.com,  58966@debbugs.gnu.org
> Date: Thu, 03 Nov 2022 10:00:59 +0100
> 
> Eli Zaretskii <eliz@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?





  reply	other threads:[~2022-11-03  9:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-02 13:56 bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf() Jacob Faibussowitsch
2022-11-03  5:56 ` Gerd Möllmann
2022-11-03  8:16   ` Eli Zaretskii
2022-11-03  9:00     ` Gerd Möllmann
2022-11-03  9:15       ` Eli Zaretskii [this message]
2022-11-03  9:36         ` Gerd Möllmann
2022-11-03 14:40           ` Jacob Faibussowitsch
2022-11-03 14:43             ` Gerd Möllmann
2022-11-03 14:48               ` Jacob Faibussowitsch
2022-11-03 15:22                 ` Gerd Möllmann
2022-11-03 15:30                   ` Jacob Faibussowitsch
2022-11-03 16:15                     ` Gerd Möllmann
2022-11-03 16:19                       ` Gerd Möllmann
2022-11-03 18:30 ` Paul Eggert
2022-11-04 21:07   ` Jacob Faibussowitsch
2022-11-05  3:12   ` Richard Stallman
2022-11-05 16:26     ` Stefan Kangas
2022-11-05 20:00       ` Paul Eggert
2022-11-07  7:46         ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838rks8klm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=58966@debbugs.gnu.org \
    --cc=gerd.moellmann@gmail.com \
    --cc=jacob.fai@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.