From d97fad20366e95c96336de34c066a37ec2baf592 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Fri, 24 Mar 2023 14:10:43 +0100 Subject: [PATCH] configure: Fix an "implicit int" warning configure defines a main function without a return type, leading to a -Wimplicit-int warning (enabled by default in C99 and later dialects). This commit fixes that. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b59d0751..ca8ecee3 100644 --- a/configure.ac +++ b/configure.ac @@ -390,7 +390,7 @@ void foo(const char *format, ...) { exit(0); } -main() { foo("hello\n"); } +int main() { foo("hello\n"); } ]])],[el_cv_HAVE_C99_VSNPRINTF=yes],[el_cv_HAVE_C99_VSNPRINTF=no],[el_cv_HAVE_C99_VSNPRINTF=cross])]) if test x"$el_cv_HAVE_C99_VSNPRINTF" = x"yes"; then EL_DEFINE(HAVE_C99_VSNPRINTF, [C99 compliant vsnprintf()])