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: [PATCH] Fix -Wdeprecated-non-prototype in configure Date: Tue, 22 Nov 2022 02:40:56 +0000 Message-ID: <20221122024056.2019458-1-sam@gentoo.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24765"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Sam James To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Nov 22 14:48:29 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 1oxTdU-0006E7-Sh for guile-devel@m.gmane-mx.org; Tue, 22 Nov 2022 14:48:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxTdE-0007rS-Mr; Tue, 22 Nov 2022 08:48:12 -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 1oxJDn-0001Qo-Mv for guile-devel@gnu.org; Mon, 21 Nov 2022 21:41:15 -0500 Original-Received: from smtp.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oxJDl-0005id-CR for guile-devel@gnu.org; Mon, 21 Nov 2022 21:41:15 -0500 X-Mailer: git-send-email 2.38.1 Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4; 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 22 Nov 2022 08:48:00 -0500 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:21486 Archived-At: 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(-) 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[] = { &&l1, &&l2 }; goto *label[i]; -- 2.38.1