1
0
Fork 0

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.
This commit is contained in:
Arjun Shankar 2023-03-24 14:10:43 +01:00
parent 79fdb363b3
commit d97fad2036
1 changed files with 1 additions and 1 deletions

View File

@ -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()])