3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

fix compiler warnings under clang (#5839)

This commit is contained in:
Qix 2022-02-16 22:36:34 +01:00 committed by GitHub
parent 09da87dc85
commit 9cf50766a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 deletions

View file

@ -687,7 +687,7 @@ public:
return ensure_euf()->user_propagate_register_expr(e);
}
void user_propagate_register_created(user_propagator::created_eh_t& r) {
void user_propagate_register_created(user_propagator::created_eh_t& r) override {
ensure_euf()->user_propagate_register_created(r);
}

View file

@ -1458,7 +1458,7 @@ namespace pb {
return nullptr;
}
rational weight(0);
for (auto const [w, l] : wlits)
for (auto const &[w, l] : wlits)
weight += w;
if (weight < k) {
if (lit == sat::null_literal)