summaryrefslogtreecommitdiff
path: root/lib/autoconf/specific.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/specific.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/specific.m4')
-rw-r--r--lib/autoconf/specific.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4
index eadde52e..de940f21 100644
--- a/lib/autoconf/specific.m4
+++ b/lib/autoconf/specific.m4
@@ -254,7 +254,7 @@ void ucatch (dummy) int dummy; { }
#endif
int
-main ()
+main (void)
{
int i = fork (), status;