From: Paolo Carlini Date: Wed, 22 Jun 2011 22:28:56 +0000 (+0000) Subject: pat_trie_base.hpp: Avoid -Wall warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98656b3d143e7b49fdf62b9486686f838317c3f9;p=gcc.git pat_trie_base.hpp: Avoid -Wall warning. 2011-06-22 Paolo Carlini * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall warning. From-SVN: r175321 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 97e0b3764a3..7cbae95f394 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-06-22 Paolo Carlini + + * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall + warning. + 2011-06-22 Paolo Carlini * testsuite/20_util/reference_wrapper/invoke.cc: Avoid -Wall warnings. diff --git a/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp b/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp index f5326e944fb..b7eb024c07f 100644 --- a/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp +++ b/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp @@ -1318,7 +1318,7 @@ namespace __gnu_pbds get_begin_pos() const { size_type i = 0; - for (i; i < arr_size && m_a_p_children[i] == 0; ++i) + for (; i < arr_size && m_a_p_children[i] == 0; ++i) ; return i; }