Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-dev@g.o
From: Chí-Thanh Christopher Nguyễn <chithanh@g.o>
Subject: Re: -Werror unwanted?
Date: Mon, 14 May 2012 22:42:03 +0200
Jeroen Roovers schrieb:
>> -Werror is basically saying that it is not safe to ship code which
>> produces warnings.
> An upstream demanding -Werror should work means upstream would need to
> test rather a lot more than their own favourite
> distro/architecture/library versions/kernel/userland, which isn't
> going to happen.

No. -Werror just means that if a warning is encountered, the user should
be prevented from installing the software. Then a developer looks at the
issue and determines whether it is safe to ignore or needs to be addressed.

>> I personally think that if an upstream says that no warnings must be
>> produced by the code, and a developer should look at them before
>> declaring any warnings safe, then that is best followed.
> Upstream does not need to take into account warnings produced by
> compilers for lesser known architectures, as explained above.

These warnings could be harmless or introduce silent breakage. The user
often can't tell.

> As an upstream development aid to check code that has just been added
> or changed, -Werror is fine, but not in the wild jungle that is Gentoo.
> You might as well just look at the warnings themselves instead of
> breaking the build system by making them fatal. In other words, for
> upstream development it's convenient, but never for our users out there.

-Werror is not convenient for anybody. When the developer has looked at
the issue, then the particular warning could be made non-fatal. hasufell
mentioned in another post the GTK+ deprecated warnings.

Note that I don't propose the current policy to be changed. I can
totally live with filtering -Werror in order to reduce maintenance work,
at the small cost mentioned above.

Best regards,
Chí-Thanh Christopher Nguyễn

Re: -Werror unwanted?
-- Nikos Chantziaras
-Werror unwanted?
-- hasufell
Re: -Werror unwanted?
-- Chí-Thanh Christopher Nguyễn
Re: -Werror unwanted?
-- Jeroen Roovers
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: -Werror unwanted?
Next by thread:
Re: -Werror unwanted?
Previous by date:
Re: RFC: new global USE flag: jit
Next by date:
Re: RFC: new global USE flag: jit

Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.