3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

Add and fix a few general compiler warnings. (#5628)

* rewriter: fix unused variable warnings

* cmake: make missing non-virtual dtors error

* treewide: add missing virtual destructors

* cmake: add a few more checks

* api: add missing virtual destructor to user_propagator_base

* examples: compile cpp example with compiler warnings

* model: fix unused variable warnings

* rewriter: fix logical-op-parentheses warnings

* sat: fix unused variable warnings

* smt: fix unused variable warnings
This commit is contained in:
Henrich Lauko 2021-10-29 15:42:32 +02:00 committed by GitHub
parent 1d45a33163
commit 96671cfc73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 68 additions and 9 deletions

View file

@ -2091,7 +2091,6 @@ namespace {
enode * n = m_registers[j2->m_reg]->get_root();
if (n->get_num_parents() == 0)
return nullptr;
unsigned num_args = n->get_num_args();
enode_vector * v = mk_enode_vector();
enode_vector::const_iterator it1 = n->begin_parents();
enode_vector::const_iterator end1 = n->end_parents();

View file

@ -50,6 +50,7 @@ namespace smt {
class evaluator {
public:
virtual ~evaluator() = default;
virtual expr* eval(expr* n, bool model_completion) = 0;
};

View file

@ -29,6 +29,7 @@ namespace smt {
class theory_opt {
public:
typedef inf_eps_rational<inf_rational> inf_eps;
virtual ~theory_opt() = default;
virtual inf_eps value(theory_var) = 0;
virtual inf_eps maximize(theory_var v, expr_ref& blocker, bool& has_shared) = 0;
virtual theory_var add_objective(app* term) = 0;