summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2022-12-26 19:34:11 -0800
committerGitHub <noreply@github.com>2022-12-26 19:34:11 -0800
commitf32f88866361c87579a3eceea2a694ce22b7ffa4 (patch)
tree61c272041a72477f0e282236127005350e35b1a8
parent0eb070e437ae2ac0e25e4795d20df145d7bbfbee (diff)
parentb30347bae6f96f2cc14e977d4a15c7015ea589b0 (diff)
downloadraptor-f32f88866361c87579a3eceea2a694ce22b7ffa4.tar.gz
Merge pull request #55 from thesamesam/clang16
configure.ac: fix -Wimplicit-function-declaration in HAVE___FUNCTION_…
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fae94798..7d3f8cde 100644
--- a/configure.ac
+++ b/configure.ac
@@ -335,7 +335,8 @@ AC_C_BIGENDIAN
AC_C_INLINE
AC_MSG_CHECKING(whether __FUNCTION__ is available)
-AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { printf(__FUNCTION__); }])],
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
+int main(void) { printf(__FUNCTION__); }])],
[AC_DEFINE([HAVE___FUNCTION__], [1], [Is __FUNCTION__ available])
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
@@ -419,7 +420,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#ifdef HAVE_STRING_H
#include <string.h>
#endif
-int main() { return strtok_r(); }
+int main(void) { return strtok_r(); }
])],
[AC_MSG_RESULT(yes)
have_strtok_r=yes