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 11:15:33 +0200 Message-ID: <838rks8klm.fsf@gnu.org> References: <83leos8nbj.fsf@gnu.org> 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="40147"; 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 10:16:33 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 1oqWKt-000A6A-Iv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Nov 2022 10:16:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqWKd-00032p-HC; Thu, 03 Nov 2022 05:16:21 -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 1oqWKQ-0002xk-MM for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 05:16:02 -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 1oqWKQ-0001EB-EB for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 05:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqWKQ-0000ii-58 for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 05:16: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 09:16: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.16674669572747 (code B ref 58966); Thu, 03 Nov 2022 09:16:02 +0000 Original-Received: (at 58966) by debbugs.gnu.org; 3 Nov 2022 09:15:57 +0000 Original-Received: from localhost ([127.0.0.1]:47984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqWKK-0000iF-Ly for submit@debbugs.gnu.org; Thu, 03 Nov 2022 05:15:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqWKF-0000hy-Uq for 58966@debbugs.gnu.org; Thu, 03 Nov 2022 05:15:55 -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 1oqWKA-0001BH-Ii; Thu, 03 Nov 2022 05:15:46 -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=VoNnjtcbp0Kiby+icDbla1Pb3jrYrbqGl9rwtfMWNrQ=; b=Ad2QrXcW/rRJkUhx9rrW HL6kyVlo0rNWx8V2/X6FpH/pvaa71MooVIXr/ZqtgettzEkdXNnGYPJeYxJMCg/fwqOsSrrxiidJQ 6IY3qi7K0OX/QT3IJJvHznqBTNR0Ma55eKvhLe/jTOpwzuAPJ9/Ihp223I/yWuPVNhtN1Lw/QcoN3 Xa349BZLEZ39v5KPqfeLSmPcLbQMkLrOp4t3XB2RsGS3g/YaN651Brm+0e8Y6cVS4T+QAwftlxqcm mK83P49B6qReqPoVFV/pXlzItRlkXOlWAJ9Cyj2eCxM4gopOUysMs3+m/a/qVVwLT/5c64RH3i1nr 9kyXjk3iyzmLyw==; 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 1oqWK4-00050F-Ku; Thu, 03 Nov 2022 05:15:42 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 03 Nov 2022 10:00:59 +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:246938 Archived-At: > From: Gerd Möllmann > Cc: jacob.fai@gmail.com, 58966@debbugs.gnu.org > Date: Thu, 03 Nov 2022 10:00:59 +0100 > > Eli Zaretskii 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?