From b30347bae6f96f2cc14e977d4a15c7015ea589b0 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 6 Nov 2022 05:46:47 +0000 Subject: configure.ac: fix -Wstrict-prototypes In preparation for C23 which bans these. Signed-off-by: Sam James --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 84fc6bbc..7d3f8cde 100644 --- a/configure.ac +++ b/configure.ac @@ -336,7 +336,7 @@ AC_C_INLINE AC_MSG_CHECKING(whether __FUNCTION__ is available) AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include -int main() { printf(__FUNCTION__); }])], +int main(void) { printf(__FUNCTION__); }])], [AC_DEFINE([HAVE___FUNCTION__], [1], [Is __FUNCTION__ available]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) @@ -420,7 +420,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #ifdef HAVE_STRING_H #include #endif -int main() { return strtok_r(); } +int main(void) { return strtok_r(); } ])], [AC_MSG_RESULT(yes) have_strtok_r=yes -- cgit v1.2.1