From: chenyu29 <[email protected]>

check_func() generates "extern int func()" with empty parentheses.
In C (before C23) this declares a function with an unspecified number
of parameters rather than zero parameters, which is a deprecated
feature removed in C23.

Use "extern int func(void)" to declare a function taking no arguments,
which is correct in all C standards.

Signed-off-by: chenyu29 <[email protected]>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index c02d2a1cfc..f4ae2953ca 100755
--- a/configure
+++ b/configure
@@ -1451,7 +1451,7 @@ check_func(){
     shift
     disable $func
     test_ld "cc" "$@" <<EOF && enable $func
-extern int $func();
+extern int $func(void);
 int main(void){ $func(); }
 EOF
 }
-- 
2.34.1

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to