This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should -Wmaybe-uninitialized be included in -Wall?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc Mailing List <gcc at gcc dot gnu dot org>, Xinliang David Li <davidxl at google dot com>
- Date: Wed, 10 Jul 2013 17:16:32 -0500
- Subject: Re: Should -Wmaybe-uninitialized be included in -Wall?
- References: <CAESRpQCfAA=xuJ8asRDJHBuHpyABiLy8KswbrSUmrkeSevAsPg at mail dot gmail dot com>
On Wed, Jul 10, 2013 at 4:37 PM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> To be honest, I agree with Gabriel here. And I would go a step
> forward, I would say that we are too timid with the warnings we enable
> by default or by -Wall. We should warn more agressively, and let users
> disable the warnings that they don't care about or are too buggy for
> their taste. Because, at the end, it is a matter of taste.
We have to be careful here. If a warning switch spews too much noise,
especially when building idiomatic codes or the standard library for
example, then I don't think it is a matter of taste; it just doesn't
have its place in -Wall. And yes, we had had such examples.
-- Gaby