autoconf-patches
[Top][All Lists]
Advanced

[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/)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]