cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: gcc warnings in non-debug builds

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Sep 2008 20:16:48 +0200 (CEST)

On Tue, 30 Sep 2008, Dan Fandrich wrote:

> Who would want to see warnings in a production build, anyway? End users
> aren't in a position to do anything about them (they just clutter the build
> logs), and developers are usually going to be building with --enable-debug,
> anyway. If someone really, really wants the warnings in a non-debug build,
> he can just add them himself to CPPFLAGS. I don't see how the benefits of
> this (are there any?) outweigh the down side.

We could also of course introduce a new --enable-warnings configure option
that would only do exactly that (== enable picky compiler warning options) and
not all the (other) magic --enable-debug does.

-- 
  / daniel.haxx.se
Received on 2008-09-30