← Back to team overview

maria-developers team mailing list archive

bzr commit into MariaDB 5.1, with Maria 1.5:maria branch (knielsen:2793)

 

#At lp:maria

 2793 knielsen@xxxxxxxxxxxxxxx	2010-03-31
      Fix compiler warnings
      modified:
        storage/oqgraph/graphcore.cc

=== modified file 'storage/oqgraph/graphcore.cc'
--- a/storage/oqgraph/graphcore.cc	2010-03-30 07:33:38 +0000
+++ b/storage/oqgraph/graphcore.cc	2010-03-31 07:54:07 +0000
@@ -1021,7 +1021,8 @@ int vertices_cursor::fetch_row(const row
   vertex_iterator it, end;
   reference ref;
   size_t count= position;
-  for (tie(it, end)= vertices(share->g); count && it != end; ++it, --count);
+  for (tie(it, end)= vertices(share->g); count && it != end; ++it, --count)
+    ;
   if (it != end)
     ref= reference(position+1, *it);
   if (int res= fetch_row(row_info, result, ref))
@@ -1066,7 +1067,8 @@ int edges_cursor::fetch_row(const row &r
   edge_iterator it, end;
   reference ref;
   size_t count= position;
-  for (tie(it, end)= edges(share->g); count && it != end; ++it, --count);
+  for (tie(it, end)= edges(share->g); count && it != end; ++it, --count)
+    ;
   if (it != end)
     ref= reference(position+1, *it);
   if (int res= fetch_row(row_info, result, ref))