Re: [PATCH] Change main () to main (void) for C/C++

Eric Blake <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 01/04/2014 08:50 PM, Vincent Lefevre wrote:
> This patch changes "main ()" to "main (void)" for C/C++.
> See: http://lists.gnu.org/archive/html/bug-autoconf/2014-01/msg00005.html
> 

> 
> diff --git a/doc/autoconf.texi b/doc/autoconf.texi
> index 6c374c0..09947a6 100644
> --- a/doc/autoconf.texi
> +++ b/doc/autoconf.texi
> @@ -9132,7 +9132,7 @@ on a system with @command{gcc} installed, results in:
>  
>  const char hw[] = "Hello, World\n";
>  int
> -main ()
> +main (void)

Thanks again for doing this, and sorry for the delay.  Now pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc (application/pgp-signature, 604 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJS/SVLAAoJEKeha0olJ0NqwUAH/2kjBx2sumz0wJbhlnQTn7ZI
L5NVqg3MiBmQowX8yoJRGon3i2ljTlHIVx87O2rmRgj5EYnmt5vX4rhVQ6UK2pzc
3zEnEhjFuGwJWJzRrS4Ypb5B1vZNkbIy5Qc8cp3oE8v7nVVQ86eSxZPCj+y4hJST
s9JFTUvRIDL0Bh3RS5UjMDNhSUya2EGnzPNIad8XBaX9CXQQ1/KTiZYFw45X4hVx
yvJ282//PQokYSvCDlvaEbasHrqqjyjkLF5rQWsEIVNe+vHGzPSmXpyP6qSLessS
TGvjhqDKiV+wxRRQSmD/0QnrCnBvdrAzs4JeLPbMgltnoC3yyeE4Qj1OkwVZobI=
=agGS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.