From: Sam James <sam@gentoo.org>
To: guile-devel@gnu.org
Subject: Re: [PATCH] Fix -Wdeprecated-non-prototype in configure
Date: Wed, 14 Dec 2022 04:20:16 +0000 [thread overview]
Message-ID: <A121C633-6A10-45B3-B0A8-C0FAEECA077B@gentoo.org> (raw)
In-Reply-To: <20221122024056.2019458-1-sam@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
> On 22 Nov 2022, at 02:40, Sam James <sam@gentoo.org> wrote:
>
> 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
>
ping
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 358 bytes --]
prev parent reply other threads:[~2022-12-14 4:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 2:40 [PATCH] Fix -Wdeprecated-non-prototype in configure Sam James
2022-12-14 4:20 ` Sam James [this message]
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=A121C633-6A10-45B3-B0A8-C0FAEECA077B@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).