unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Sam James <sam@gentoo.org>
To: guile-devel@gnu.org
Cc: Sam James <sam@gentoo.org>
Subject: [PATCH] Fix -Wdeprecated-non-prototype in configure
Date: Tue, 22 Nov 2022 02:40:56 +0000	[thread overview]
Message-ID: <20221122024056.2019458-1-sam@gentoo.org> (raw)

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




             reply	other threads:[~2022-11-22  2:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-22  2:40 Sam James [this message]
2022-12-14  4:20 ` [PATCH] Fix -Wdeprecated-non-prototype in configure Sam James

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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221122024056.2019458-1-sam@gentoo.org \
    --to=sam@gentoo.org \
    --cc=guile-devel@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).