From 1717921aa6c1ef559ef494675f6d1b20c2ae389e Mon Sep 17 00:00:00 2001 From: Vincent Lefevre Date: Sun, 5 Jan 2014 04:50:02 +0100 Subject: Change main () to main (void) for C/C++ This patch changes "main ()" to "main (void)" for C/C++. See: http://lists.gnu.org/archive/html/bug-autoconf/2014-01/msg00005.html On my machine, before this patch, 3 tests were failing: 38: tools.at:1329 autom4te cache locking 218: autotest.at:1893 C unit tests ac_config_testdir at_tested autotest 219: autotest.at:1948 C unit tests (EXEEXT) ac_config_testdir at_tested autotest With this patch, 2 tests were failing: 218: autotest.at:1893 C unit tests ac_config_testdir at_tested autotest 219: autotest.at:1948 C unit tests (EXEEXT) ac_config_testdir at_tested autotest (I suspect that 38 is unrelated.) Signed-off-by: Vincent Lefevre Copyright-paperwork-exempt: Yes --- lib/autoconf/functions.m4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/autoconf/functions.m4') diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index 41752127..c7790ec3 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -1147,7 +1147,7 @@ year_2050_test () } int -main () +main (void) { time_t t, delta; int i, j; @@ -1274,7 +1274,7 @@ AC_CACHE_CHECK([for working mmap], [ac_cv_func_mmap_fixed_mapped], #endif /* no HAVE_GETPAGESIZE */ int -main () +main (void) { char *data, *data2, *data3; const char *cdata2; @@ -1562,7 +1562,7 @@ AC_CACHE_CHECK(for working strtod, ac_cv_func_strtod, double strtod (); #endif int -main() +main (void) { { /* Some versions of Linux strtod mis-parse strings with leading '+'. */ @@ -1900,7 +1900,7 @@ sparc_address_test (int arg) } int -main () +main (void) { pid_t parent = getpid (); pid_t child; @@ -2018,7 +2018,7 @@ AC_CACHE_CHECK([for wait3 that fills in rusage], #include /* HP-UX has wait3 but does not fill in rusage at all. */ int -main () +main (void) { struct rusage r; int i; -- cgit v1.2.1