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:
parent
97aa4b92e1
commit
ca4ab42973
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user