Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC
Nick Bowler <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Organization | Elliptic Technologies Inc. |
| Message-ID | <[email protected]> |
Hello, On 2014-04-10 13:41 -0400, Dale Visser wrote: > This has been on my back burner for a while, but I have finally taken the time to address some concerns raised earlier. To remind you all, these changes are about turning on a pragmatic set of compiler warning flags for C, C++ and Fortran projects by default. The changes now include an easy mechanisms for: > > * disabling this new default behavior > * appending additional flags, which get checked for acceptance by the current compiler 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, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)