Supress intentional unused variable warning in for loop.

Reviewers: florijan, buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D101
This commit is contained in:
Dominik Gleich 2017-03-08 11:13:49 +01:00
parent 97aa4b92e1
commit ca4ab42973

View File

@ -9,14 +9,14 @@
size_t CountVertices(GraphDbAccessor &db_accessor) {
size_t r_val = 0;
for (auto va : db_accessor.vertices()) r_val++;
for ([[gnu::unused]] auto va : db_accessor.vertices()) r_val++;
return r_val;
}
size_t CountEdges(GraphDbAccessor &db_accessor) {
size_t r_val = 0;
for (auto va : db_accessor.edges()) r_val++;
for ([[gnu::unused]] auto va : db_accessor.edges()) r_val++;
return r_val;
}