3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +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); 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); ensure_euf()->user_propagate_register_created(r);
} }

View file

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

View file

@ -1563,6 +1563,7 @@ public:
return FC_CONTINUE; return FC_CONTINUE;
} }
for (expr* e : m_not_handled) { for (expr* e : m_not_handled) {
(void) e; // just in case TRACE() is a no-op
TRACE("arith", tout << "unhandled operator " << mk_pp(e, m) << "\n";); TRACE("arith", tout << "unhandled operator " << mk_pp(e, m) << "\n";);
st = FC_GIVEUP; st = FC_GIVEUP;
} }

View file

@ -110,7 +110,6 @@ protected:
void operator()(quantifier * q) { void operator()(quantifier * q) {
m_stats["quantifiers"]++; m_stats["quantifiers"]++;
SASSERT(is_app(q->get_expr())); SASSERT(is_app(q->get_expr()));
app * body = to_app(q->get_expr());
switch (q->get_kind()) { switch (q->get_kind()) {
case forall_k: case forall_k:
m_stats["forall-variables"] += q->get_num_decls(); m_stats["forall-variables"] += q->get_num_decls();