[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & A
From: |
Nick Bowler |
Subject: |
Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC |
Date: |
Thu, 10 Apr 2014 16:19:57 -0400 |
User-agent: |
Mutt/1.5.22 (2013-10-16) |
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/)
- Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC, Dale Visser, 2014/04/10
- Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC,
Nick Bowler <=
- Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC, Dale Visser, 2014/04/11
- Fwd: Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC, Dale Visser, 2014/04/11
- Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC, Dale Visser, 2014/04/11
- =?UTF-8?Q?Re:=20Turn=20on=20compiler=20warnings=20by=20default=20for=20AC=5FPROG=5FCC, =20AC=5FPROG=5FCXX=09&=20AC=5FPROG=5FFC?=, David A. Wheeler, 2014/04/11
- RE: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC, Dale Visser, 2014/04/14
- RE: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC, David A. Wheeler, 2014/04/14