[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
=?UTF-8?Q?Re:=20Turn=20on=20compiler=20warnings=20by=20default=20for=20A
From: |
David A. Wheeler |
Subject: |
=?UTF-8?Q?Re:=20Turn=20on=20compiler=20warnings=20by=20default=20for=20AC=5FPROG=5FCC, =20AC=5FPROG=5FCXX=09&=20AC=5FPROG=5FFC?= |
Date: |
Fri, 11 Apr 2014 15:23:33 -0400 (EDT) |
On Fri, 11 Apr 2014 08:33:01 -0400, Dale Visser <address@hidden> wrote:
> You found a mistake in the code comments that were brought over with
> this code from Autoconf Archive.
Okay, hope you'll fix that!
> To answer your specific question about GCC, only '-Wall' gets
> used to compile.
Good, that makes way more sense.
I like to also use "-Wextra" when using gcc.
If I understand patch correctly, I could then use:
AC_APPEND_CFLAG_IFVALID([-Wextra])
It will then add "-Wextra"... but only if the compiler *accepts* that flag.
BTW, I recently got a patch from someone on a project that
force-added "-Wall" to configure.ac. Dale Visser's addition to autoconf is way
better,
because it doesn't presume that "all the world is gcc".
--- David A. Wheeler
- 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, 2014/04/10
- 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 <=
- 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