unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] Fix -Wdeprecated-non-prototype in configure
@ 2022-11-22  2:40 Sam James
  2022-12-14  4:20 ` Sam James
  0 siblings, 1 reply; 2+ messages in thread
From: Sam James @ 2022-11-22  2:40 UTC (permalink / raw)
  To: guile-devel; +Cc: Sam James

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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix -Wdeprecated-non-prototype in configure
  2022-11-22  2:40 [PATCH] Fix -Wdeprecated-non-prototype in configure Sam James
@ 2022-12-14  4:20 ` Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-12-14  4:20 UTC (permalink / raw)
  To: guile-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-14  4:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  2:40 [PATCH] Fix -Wdeprecated-non-prototype in configure Sam James
2022-12-14  4:20 ` Sam James

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).