Skip to content

Commit 7da58b9

Browse files
fix build warnings
1 parent 30b4fe6 commit 7da58b9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/ast/rewriter/inj_axiom.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ bool simplify_inj_axiom(ast_manager & m, quantifier * q, expr_ref & result) {
7474
}
7575
}
7676
if (found_vars && !has_free_vars(q)) {
77+
(void)num_vars;
7778
TRACE("inj_axiom",
7879
tout << "Cadidate for simplification:\n" << mk_ll_pp(q, m) << mk_pp(app1, m) << "\n" << mk_pp(app2, m) << "\n" <<
7980
mk_pp(var1, m) << "\n" << mk_pp(var2, m) << "\nnum_vars: " << num_vars << "\n";);

src/sat/sat_solver.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ namespace sat {
10121012
}
10131013

10141014
bool solver::propagate_literal(literal l, bool update) {
1015-
literal l1, l2;
1015+
literal l1;
10161016

10171017
bool keep;
10181018
unsigned curr_level = lvl(l);
@@ -4733,7 +4733,7 @@ namespace sat {
47334733
num_lits += c.size();
47344734
}
47354735
}
4736-
unsigned total_cls = num_cls + num_ter + num_bin;
4736+
unsigned total_cls = num_cls + num_ter + num_bin + num_ext;
47374737
double mem = static_cast<double>(memory::get_allocation_size())/static_cast<double>(1024*1024);
47384738
out << "(sat-status\n";
47394739
out << " :inconsistent " << (m_inconsistent ? "true" : "false") << "\n";

src/smt/diff_logic.h

-2
Original file line numberDiff line numberDiff line change
@@ -1872,13 +1872,11 @@ class dl_graph {
18721872
// found path.
18731873
reset_marks();
18741874
m_heap.reset();
1875-
unsigned length = 0;
18761875
do {
18771876
inc_activity(m_parent[w]);
18781877
edge const& ee = m_edges[m_parent[w]];
18791878
f(ee.get_explanation());
18801879
w = ee.get_source();
1881-
++length;
18821880
}
18831881
while (w != src2);
18841882
return;

src/smt/theory_arith_aux.h

+1
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@ namespace smt {
15541554
min_gain.reset();
15551555
++round;
15561556

1557+
(void)round;
15571558
TRACE("opt", tout << "round: " << round << ", max: " << max << "\n"; display_row(tout, r, true); tout << "state:\n"; display(tout););
15581559
typename vector<row_entry>::const_iterator it = r.begin_entries();
15591560
typename vector<row_entry>::const_iterator end = r.end_entries();

0 commit comments

Comments
 (0)