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: Tom Tromey <tromey at redhat dot com>
- To: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- Cc: Andrew Haley <aph at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 09 Jul 2013 12:42:49 -0600
- Subject: Re: Should -Wmaybe-uninitialized be included in -Wall?
- References: <87ehb8rljz dot fsf at br87z6lw dot de dot ibm dot com> <51DBFC32 dot 8050401 at redhat dot com> <87siznrg4y dot fsf at br87z6lw dot de dot ibm dot com>
Andrew> I would question the appropriateness of using -Wall -Werror in
Andrew> production code.
Andreas> What matters is whether *some* stages of production code
Andreas> development use this combination of options. It could
Andreas> certainly be argued whether it should also be a project's
Andreas> "configure" default, like currently the case for gdb.
gdb only enables it for the development branch, not for releases. If
you're building from CVS you're expected to know how to either fix these
problems or disable -Werror. Typically the fix is trivial; if you look
through the archives you'll see fixes along these lines.
Tom