-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/10/2014 04:19 PM, Nick Bowler wrote: > Can you explain exactly which flags are (attempted to be) enabled by default? > I see the following in a comment in the patch: "For the GNU compiler it will be -Wall (and -ansi -pedantic)" If that comment is correct... this means that the script will by default put GCC into strict C89 conformance mode. Not the best default choice, especially since AC_PROG_CC is supposed to select the most recent available mode AND to prefer extended modes over strict conformance ones. Cheers,
You found a mistake in the code comments that were brought over with this code from Autoconf Archive. Lines 466 through 473 specify the options to be enabled. The option before the '%' character is used to detect which type of compiler we're dealing with. The options(s) after define the options to use when compiling. To answer your specific question about GCC, only '-Wall' gets used to compile. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTR9i0AAoJEP+fqXW/29WxmVwH/jliHFo0qj8TQSqwuu9aXuJQ YUOnm0NDXdgXnSJaHzVB8lBgkuDtm0aoGRuS7d2PbL7bqKYmyB96at//mEpht2FK 8WGDeXR2ZxgI8KQ+woYl7Rpu9Uj4rF/k/4r9jEpNvf9Z640748ZfTKrhfIrGMqnW 7qSvHNt0l9H2XUdLPGwTX10ZiEOSXBnvSEWWqUjNUeIrYbtHEuRKQ3uJFImxaUGN LZ5ZP0u0WogKAYNs/6Wotq0WFkqj2PzTptMiH3/11eAoqHXlwW/G4Jvw13+exZva cZNLM2f02PwXnQvmdEOjISrlTDaHFsvFjdyY3FBcUetU+pHZ1LMNxjuFwAeM90A= =HkLw -----END PGP SIGNATURE-----
