mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
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:
parent
79fdb363b3
commit
d97fad2036
@ -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()])
|
||||
|
Loading…
Reference in New Issue
Block a user