summaryrefslogtreecommitdiff
path: root/lib/autoconf/functions.m4
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2014-01-05 04:50:02 +0100
committerEric Blake <eblake@redhat.com>2014-02-13 11:38:12 -0700
commit1717921aa6c1ef559ef494675f6d1b20c2ae389e (patch)
tree84e7a1c65887b005c467b7614008046b16e3a24e /lib/autoconf/functions.m4
parente5d3c9621fbd23c5e2d62fdb19534ed1b5f3ab09 (diff)
downloadautoconf-1717921aa6c1ef559ef494675f6d1b20c2ae389e.tar.gz
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 <vincent@vinc17.net> Copyright-paperwork-exempt: Yes
Diffstat (limited to 'lib/autoconf/functions.m4')
-rw-r--r--lib/autoconf/functions.m410
1 files changed, 5 insertions, 5 deletions
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 <sys/wait.h>
/* HP-UX has wait3 but does not fill in rusage at all. */
int
-main ()
+main (void)
{
struct rusage r;
int i;