3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-23 12:48:53 +00:00

fix a few compilation warnings

- remove unused variables and class fields
 - add support for gcc 4.5 & clang's __builtin_unreachable
 - fix 2 bugs related to strict aliasing
 - remove a few unused function parameters

Signed-off-by: Nuno Lopes <t-nclaud@microsoft.com>
This commit is contained in:
Nuno Lopes 2013-04-21 14:36:39 -07:00
parent 0673f645c9
commit 7ce88d4da9
46 changed files with 97 additions and 122 deletions

View file

@ -68,14 +68,11 @@ namespace smt {
bv_util& b() { return m_bv; }
class dl_value_proc : public smt::model_value_proc {
smt::model_generator & m_mg;
theory_dl& m_th;
smt::enode* m_node;
public:
dl_value_proc(smt::model_generator & m, theory_dl& th, smt::enode* n):
m_mg(m), m_th(th), m_node(n)
{ }
dl_value_proc(theory_dl& th, smt::enode* n) : m_th(th), m_node(n) {}
virtual void get_dependencies(buffer<smt::model_value_dependency> & result) {}
@ -165,8 +162,8 @@ namespace smt {
m.register_factory(alloc(dl_factory, m_util, m.get_model()));
}
virtual smt::model_value_proc * mk_value(smt::enode * n, smt::model_generator & m) {
return alloc(dl_value_proc, m, *this, n);
virtual smt::model_value_proc * mk_value(smt::enode * n) {
return alloc(dl_value_proc, *this, n);
}
virtual void apply_sort_cnstr(enode * n, sort * s) {