diff options
author | Sam James <sam@gentoo.org> | 2022-10-30 17:35:01 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-30 17:42:55 +0000 |
commit | d9e783f7eb235c9d27ed69c8e56cd78a6becd323 (patch) | |
tree | 05bde52b61e6daf73f9be093242d047fe91f8902 /m4 | |
parent | 7a608fe3659b428f97760e84c0907cdd1d988b79 (diff) | |
download | autoconf-archive-d9e783f7eb235c9d27ed69c8e56cd78a6becd323.tar.gz |
AX_C99_INLINE: fix -Wstrict-prototypes
Preparation for Clang 16.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_c99_inline.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/ax_c99_inline.m4 b/m4/ax_c99_inline.m4 index 6675e02..2a03b8e 100644 --- a/m4/ax_c99_inline.m4 +++ b/m4/ax_c99_inline.m4 @@ -21,7 +21,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 8 +#serial 9 AC_DEFUN([AX_C99_INLINE], [ AC_MSG_CHECKING([whether the compiler supports C99 inline functions]) @@ -36,8 +36,8 @@ AC_DEFUN([AX_C99_INLINE], [ dnl translation units that could require the definition. AC_LINK_IFELSE( AC_LANG_SOURCE([ - inline void* foo() { foo(); return &foo; } - int main() { return foo() != 0;} + inline void* foo(void) { foo(); return &foo; } + int main(void) { return foo() != 0;} ]), dnl the invalid source compiled, so the inline keyword does not work @@ -47,8 +47,8 @@ AC_DEFUN([AX_C99_INLINE], [ dnl Secondary test of valid source. AC_LINK_IFELSE( AC_LANG_SOURCE([ - extern inline void* foo() { foo(); return &foo; } - int main() { return foo() != 0;} + extern inline void* foo(void) { foo(); return &foo; } + int main(void) { return foo() != 0;} ]), AC_MSG_RESULT([yes]) |