OSDN Git Service

2011-06-22 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2011 22:28:56 +0000 (22:28 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2011 22:28:56 +0000 (22:28 +0000)
* include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall
warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175321 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp

index 97e0b37..7cbae95 100644 (file)
@@ -1,5 +1,10 @@
 2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
 
+       * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall
+       warning.
+
+2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
+
        * testsuite/20_util/reference_wrapper/invoke.cc: Avoid -Wall warnings.
        * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
        * testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.
index f5326e9..b7eb024 100644 (file)
@@ -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;
     }