diff options
author | unknown <knielsen@knielsen-hq.org> | 2010-03-31 09:54:07 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2010-03-31 09:54:07 +0200 |
commit | dec8b0254c01cc4a01f8a9af28a74fa8e8463b87 (patch) | |
tree | 5057c4c71b3baa4a0660af4822d1022751913fb7 | |
parent | 5d836737addc7473ba8b37fab4bd6517c9ee3af2 (diff) | |
download | mariadb-git-dec8b0254c01cc4a01f8a9af28a74fa8e8463b87.tar.gz |
Fix compiler warnings
-rw-r--r-- | storage/oqgraph/graphcore.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/oqgraph/graphcore.cc b/storage/oqgraph/graphcore.cc index f9751cf682b..f19f99d0756 100644 --- a/storage/oqgraph/graphcore.cc +++ b/storage/oqgraph/graphcore.cc @@ -1021,7 +1021,8 @@ int vertices_cursor::fetch_row(const row &row_info, row &result) 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 &row_info, row &result) 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)) |