Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warnings under clang #5839

Merged
merged 1 commit into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sat/sat_solver/inc_sat_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ class inc_sat_solver : public solver {
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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/sat/smt/pb_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/smt/theory_lra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,7 @@ class theory_lra::imp {
return FC_CONTINUE;
}
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";);
st = FC_GIVEUP;
}
Expand Down
1 change: 0 additions & 1 deletion src/tactic/core/collect_statistics_tactic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ class collect_statistics_tactic : public tactic {
void operator()(quantifier * q) {
m_stats["quantifiers"]++;
SASSERT(is_app(q->get_expr()));
app * body = to_app(q->get_expr());
switch (q->get_kind()) {
case forall_k:
m_stats["forall-variables"] += q->get_num_decls();
Expand Down