automake
[Top][All Lists]
Advanced

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

Re: How to build source code while treating all warnings as errors with


From: Ralf Wildenhues
Subject: Re: How to build source code while treating all warnings as errors with automake...
Date: Tue, 19 Feb 2008 01:27:22 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hello,

* NotFound wrote on Mon, Feb 18, 2008 at 10:43:00PM CET:
> > > Recently, I converted the project over to using Autotools and am
> > > wondering if there is a portable way to instruct automake to generate
> > > Makefiles that build code while treating all encountered warnings as
> > > errors?
> > Probably so, and I'm sure Ralf will know what it is.  However, this is
> > usually not a very good idea.  You have no idea what compiler someone's
> > going to be using or what warnings it will throw.  For instance, passing

Typically, doing it if $GCC = yes, is rather safe.

> By the way, including -Werror in CFLAGS at configure time breaks
> several automake and autoconf tests. This is a shame, but I suppose it
> will be almost impossible to make all tests warning-free.

FWIW, before Autoconf 2.61 we went over its macros to make them emit
fewer warnings with GCC, where possible.  But then, different GCC
versions emit different warnings, and some of the tests really can't
avoid them without breakage.

Cheers,
Ralf




reply via email to

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