3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Fix compiler warnings

This commit is contained in:
Christoph M. Wintersteiger 2019-10-24 12:34:32 +01:00
parent 823bf317c5
commit efa3c0f68e
No known key found for this signature in database
GPG key ID: BCF6360F86294467
4 changed files with 208 additions and 216 deletions

View file

@ -45,7 +45,7 @@ unsigned get_num_exprs(expr * n) {
}
namespace has_skolem_functions_ns {
struct found {};
struct found {};
struct proc {
void operator()(var * n) const {}
void operator()(app const * n) const { if (n->get_decl()->is_skolem() && n->get_num_args() > 0) throw found(); }
@ -148,11 +148,10 @@ void subterms_postorder::iterator::next() {
break;
}
}
}
subterms_postorder::iterator& subterms_postorder::iterator::operator++() {
expr* e = m_es.back();
next();
return *this;
}
@ -172,4 +171,3 @@ bool subterms_postorder::iterator::operator==(iterator const& other) const {
bool subterms_postorder::iterator::operator!=(iterator const& other) const {
return !(*this == other);
}