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
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, other threads:[~2022-11-22  2:40 UTC | newest]

Thread overview: (only message) (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

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