From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf() Date: Thu, 03 Nov 2022 10:16:48 +0200 Message-ID: <83leos8nbj.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17234"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58966@debbugs.gnu.org, jacob.fai@gmail.com To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 03 09:18:36 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqVQq-0004GZ-2e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Nov 2022 09:18:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqVQY-0003D8-PK; Thu, 03 Nov 2022 04:18:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqVQQ-00039X-KA for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 04:18:16 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqVQI-0007nr-RA for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 04:18:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqVQI-00075I-7B for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 04:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Nov 2022 08:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58966 X-GNU-PR-Package: emacs Original-Received: via spool by 58966-submit@debbugs.gnu.org id=B58966.166746342727079 (code B ref 58966); Thu, 03 Nov 2022 08:18:02 +0000 Original-Received: (at 58966) by debbugs.gnu.org; 3 Nov 2022 08:17:07 +0000 Original-Received: from localhost ([127.0.0.1]:47761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqVPP-00072e-Gb for submit@debbugs.gnu.org; Thu, 03 Nov 2022 04:17:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqVPK-00071r-JG for 58966@debbugs.gnu.org; Thu, 03 Nov 2022 04:17:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqVPF-0007dU-BF; Thu, 03 Nov 2022 04:16:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ygriyYfuZfzz8ymRZPnd/IyIkuRFZsYZ2qJcI2i09Mg=; b=RJ1JRAMOgCPTwGl0jyAK IEeD/nkm6Oz470Zqx/VGos/ljhHPab/ed3PQQlD6lEXhiDydLhil6wBxPLhyRqjeYgF6gnqGe9xGe ox5KT96mYjActg6RLqqU28UAesSqS/k/fNLU+qSJ1sJRPKX4gyVgJjASkejPMEJvtdCPoFGFcIiHc jJjGlOzhdwPN+0k9z/WWrkbu+0KQMQUz/UUfED8iYJRgwp8xQ/p9HgS7HKvBYB+Cp5Ga3ZsraaqFk FMc2gsWUyzljilAT3ENj8cSXUrlDj1XjYUrPagb3JXvJ0DFyIargcir8Gsw8q6m4ZGFgDnpNxUTmy JwuDZit822kv/Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqVPE-0005Ct-QZ; Thu, 03 Nov 2022 04:16:57 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 03 Nov 2022 06:56:25 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246926 Archived-At: > Cc: 58966@debbugs.gnu.org > From: Gerd Möllmann > Date: Thu, 03 Nov 2022 06:56:25 +0100 > > Jacob Faibussowitsch 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.