This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] Avoid -Wall warnings in the testsuite
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 22 Jun 2011 15:04:44 -0700
- Subject: Re: [v3] Avoid -Wall warnings in the testsuite
- References: <4E02633B.9020902@oracle.com> <4E02665C.4090008@oracle.com>
On Wed, Jun 22, 2011 at 3:02 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> ... actually, there are also bogus "statement has no effect" warnings for
> line 1321 of ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp which also seem
> bogus:
>
> Â ÂPB_DS_CLASS_T_DEC
> Â Âtypename PB_DS_CLASS_C_DEC::size_type
> Â ÂPB_DS_CLASS_C_DEC::
> Â Âget_begin_pos() const
> Â Â{
> Â Â Âsize_type i = 0;
> Â Â Âfor (i; i < arr_size && m_a_p_children[i] == 0; ++i) // here
> Â Â;
No I think that warning is correct "for (i;" the statement i; has no effect.
Thanks,
Andrew Pinski