From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam James Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Fix -Wdeprecated-non-prototype in configure Date: Wed, 14 Dec 2022 04:20:16 +0000 Message-ID: References: <20221122024056.2019458-1-sam@gentoo.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C7F0F202-9D42-4448-B4DF-EE19597460D3"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22658"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Dec 14 05:21:03 2022 Return-path: Envelope-to: guile-devel@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 1p5JGR-0005kp-IO for guile-devel@m.gmane-mx.org; Wed, 14 Dec 2022 05:21:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5JG9-00028c-CI; Tue, 13 Dec 2022 23:20:45 -0500 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 1p5JG6-00028T-Oy for guile-devel@gnu.org; Tue, 13 Dec 2022 23:20:43 -0500 Original-Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1p5JG5-0006AK-2F for guile-devel@gnu.org; Tue, 13 Dec 2022 23:20:42 -0500 In-Reply-To: <20221122024056.2019458-1-sam@gentoo.org> X-Mailer: Apple Mail (2.3731.300.101.1.3) Received-SPF: pass client-ip=140.211.166.183; envelope-from=sam@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21504 Archived-At: --Apple-Mail=_C7F0F202-9D42-4448-B4DF-EE19597460D3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 22 Nov 2022, at 02:40, Sam James wrote: >=20 > Fixes the following with Clang 16: > ``` > -warning: a function definition without a prototype is deprecated in = all versions of C and is not supported in C2x = [-Wdeprecated-non-prototype] > +error: a function definition without a prototype is deprecated in all = versions of C and is not supported in C2x = [-Werror,-Wdeprecated-non-prototype] > int foo(i) > ^ > ``` > --- > m4/labels-as-values.m4 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/m4/labels-as-values.m4 b/m4/labels-as-values.m4 > index e01768f00..f2f38858e 100644 > --- a/m4/labels-as-values.m4 > +++ b/m4/labels-as-values.m4 > @@ -2,7 +2,7 @@ dnl check for gcc's "labels as values" feature > AC_DEFUN([AC_C_LABELS_AS_VALUES], > [AC_CACHE_CHECK([labels as values], ac_cv_labels_as_values, > [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ > -int foo(int); > +int foo(int i); > int foo(int i) { > static void *label[] =3D { &&l1, &&l2 }; > goto *label[i]; > -- > 2.38.1 >=20 ping --Apple-Mail=_C7F0F202-9D42-4448-B4DF-EE19597460D3 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY5lPAF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kBglAP95yrpkUJLa2D3Hxcn7kl/VWuQS6xWBaxW36ySndGRXggD+MstpbIFOgULH V8eLp/8JL1yIvkhZalfUhWhNBYNhlQU= =SU73 -----END PGP SIGNATURE----- --Apple-Mail=_C7F0F202-9D42-4448-B4DF-EE19597460D3--