Fix compile error on clang14.0.3 (#577)

Fixes #578
This commit is contained in:
cyan317
2023-04-04 12:55:43 +01:00
committed by GitHub
parent a1f93b09f7
commit 3320125d8f
5 changed files with 5 additions and 10 deletions

View File

@@ -988,7 +988,6 @@ TEST_F(BackendTest, Basic)
Backend::LedgerPage page;
std::vector<Backend::LedgerObject> retObjs;
size_t numLoops = 0;
do
{
uint32_t limit = 10;
@@ -1000,7 +999,6 @@ TEST_F(BackendTest, Basic)
retObjs.end(),
page.objects.begin(),
page.objects.end());
++numLoops;
} while (page.cursor);
for (auto obj : objs)
@@ -2343,7 +2341,6 @@ TEST_F(BackendTest, cacheIntegration)
}
Backend::LedgerPage page;
std::vector<Backend::LedgerObject> retObjs;
size_t numLoops = 0;
do
{
uint32_t limit = 10;
@@ -2355,7 +2352,6 @@ TEST_F(BackendTest, cacheIntegration)
retObjs.end(),
page.objects.begin(),
page.objects.end());
++numLoops;
} while (page.cursor);
for (auto obj : objs)
{