autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CX


From: Dale Visser
Subject: Fwd: Re: Turn on compiler warnings by default for AC_PROG_CC, AC_PROG_CXX & AC_PROG_FC
Date: Fri, 11 Apr 2014 08:16:27 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nick:


On 04/10/2014 04:19 PM, you 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.

Best regards,
Dale
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTR90aAAoJEP+fqXW/29WxVx4H/3hmoicbS9E3rPIP8nSNasyh
bxasOQO8hMIQ00R2z2JrxHtKv3AHvajQP4EcZeJEz+OsIpgCQ3mUOuO2fYZPRRFT
4tVAYcntsA8zhzLsWLCYL8dj+Kfh7yhW9YwuFoQp7q1l+MYkNyUwOf7tHAMsr2gA
KRr8uckvMumcw+EzH5YAjEYGHaZpZWAbJ0oZHbZ3jNJ4NWF5awTZw04yPDWtu/sz
5+9lRYXEFN+YrjsuyO79UD4Qo37B4bRjl5RhWWNhqku4BOk2km/TIuhkipStxa2D
FEB8yFlZAEHsE5ZjZXmD5KW3IK9z89ZRldXG93QNNWZ2ASzk2G2DigZMO+EZBiY=
=DVHt
-----END PGP SIGNATURE-----


reply via email to

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