This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR7651: move uninitializable member warning to -Wuninitialized
- From: "Gabriel Dos Reis" <gdr at integrable-solutions dot net>
- To: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- Cc: "Gcc Patch List" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 8 Aug 2008 13:46:24 -0500
- Subject: Re: PR7651: move uninitializable member warning to -Wuninitialized
- References: <6c33472e0808060854j63442970wb0ef1bec10b12e90@mail.gmail.com>
On Wed, Aug 6, 2008 at 10:54 AM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> Now that -Wuninitialized is enabled independently of optimization
> level, this patch implements the suggestion of Gabriel Does Reis to
> move this particular warning from -Wextra to -Wuninitialized, thus
> helping towards the goal of defining -Wextra strictly in terms of
> other warning flags (PR7651).
>
> http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01843.html
>
> Bootstrapped and regression tested on x86_64-pc-linux-gnu wit
> --enable-languages=all.
>
> OK for trunk?
>
> 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR 7651
> * doc/invoke.texi (-Wextra): Move warning from here...
> (-Wuninitialized): ... to here.
> cp/
> * class.c (check_bases_and_members): Warn with -Wuninitialized
> instead of -Wextra.
> testsuite/
> * g++.dg/warn/Wuninitializable-member.C: New.
> * g++.dg/warn/Wuninitializable-member-no.C: New.
>
OK. Thanks!
-- Gaby