mirror of
https://github.com/Z3Prover/z3
synced 2026-07-17 04:25:44 +00:00
fix build warnings
This commit is contained in:
parent
86737e11ea
commit
cb3d058067
19 changed files with 22 additions and 29 deletions
|
|
@ -38,7 +38,6 @@ int vals[N];
|
|||
|
||||
static void tst1() {
|
||||
int_set h1;
|
||||
int size = 0;
|
||||
for (int i = 1; i < N; i ++) {
|
||||
int v = rand() % (N / 2);
|
||||
h1.insert(v);
|
||||
|
|
@ -92,7 +91,7 @@ static void tst2() {
|
|||
ENSURE(contains(h1, elem));
|
||||
n++;
|
||||
}
|
||||
ENSURE(n == h1.size());
|
||||
ENSURE(n == static_cast<int>(h1.size()));
|
||||
}
|
||||
ENSURE(h1.size() == h2.size());
|
||||
// std::cout << "size: " << h1.size() << ", capacity: " << h1.capacity() << "\n"; std::cout.flush();
|
||||
|
|
@ -194,7 +193,7 @@ void test_hashtable_iterators() {
|
|||
ht.insert(3);
|
||||
|
||||
int count = 0;
|
||||
for (const auto& elem : ht) {
|
||||
for ([[maybe_unused]] const auto& elem : ht) {
|
||||
++count;
|
||||
}
|
||||
VERIFY(count == 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue