From 98656b3d143e7b49fdf62b9486686f838317c3f9 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 22 Jun 2011 22:28:56 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 5 +++++ .../include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2