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 10:16:48 +0200	[thread overview]
Message-ID: <83leos8nbj.fsf@gnu.org> (raw)
In-Reply-To: <m2a658wph2.fsf@Mini.fritz.box> (message from Gerd Möllmann on Thu, 03 Nov 2022 06:56:25 +0100)

> Cc: 58966@debbugs.gnu.org
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Date: Thu, 03 Nov 2022 06:56:25 +0100
> 
> Jacob Faibussowitsch <jacob.fai@gmail.com> writes:
> 
> > Fresh build this morning produces many such warnings. I have attached
> > config.log and make.log:
> >
> > buffer.c:1223:46: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
> >       AUTO_STRING_WITH_LEN (lnumber, number, sprintf (number, "-%d", i));
> >                                              ^
> 
> Yeah, I've got 14.1 over night now, too, and I now see the same :-(.
> 
> >From a hort look, just replacing sprintf variants with snprintf variants
> won't be enough.  Things like make_formatted_string would require
> interface changes, for example.
> 
> I short, that looks to me like a ton of boring and potentially bug-prone
> work.
> 
> What do the maintainers think about this?

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.

We aren't going to make any serious changes in this, certainly not
before the emacs-29 release branch is cut.

Thanks.





  reply	other threads:[~2022-11-03  8:16 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 [this message]
2022-11-03  9:00     ` Gerd Möllmann
2022-11-03  9:15       ` Eli Zaretskii
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=83leos8nbj.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.