mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +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:
parent
1d45a33163
commit
96671cfc73
39 changed files with 68 additions and 9 deletions
|
@ -52,6 +52,9 @@ namespace pb {
|
|||
constraint(tag_t t, unsigned id, literal l, unsigned sz, size_t osz, unsigned k):
|
||||
m_tag(t), m_lit(l), m_size(sz), m_obj_size(osz), m_id(id), m_k(k) {
|
||||
}
|
||||
|
||||
virtual ~constraint() = default;
|
||||
|
||||
sat::ext_constraint_idx cindex() const { return sat::constraint_base::mem2base(this); }
|
||||
void deallocate(small_object_allocator& a) { a.deallocate(obj_size(), sat::constraint_base::mem2base_ptr(this)); }
|
||||
unsigned id() const { return m_id; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue