fix(library/tactic/inversion_tactic): warning on clang++
This commit is contained in:
parent
b6a1c118f4
commit
59d403f7d8
1 changed files with 4 additions and 5 deletions
|
@ -16,7 +16,6 @@ Author: Leonardo de Moura
|
||||||
namespace lean {
|
namespace lean {
|
||||||
class inversion_tac {
|
class inversion_tac {
|
||||||
environment const & m_env;
|
environment const & m_env;
|
||||||
io_state const & m_ios;
|
|
||||||
proof_state const & m_ps;
|
proof_state const & m_ps;
|
||||||
list<name> m_ids;
|
list<name> m_ids;
|
||||||
name_generator m_ngen;
|
name_generator m_ngen;
|
||||||
|
@ -431,8 +430,8 @@ class inversion_tac {
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
inversion_tac(environment const & env, io_state const & ios, proof_state const & ps, list<name> const & ids):
|
inversion_tac(environment const & env, proof_state const & ps, list<name> const & ids):
|
||||||
m_env(env), m_ios(ios), m_ps(ps), m_ids(ids),
|
m_env(env), m_ps(ps), m_ids(ids),
|
||||||
m_ngen(m_ps.get_ngen()), m_subst(m_ps.get_subst()),
|
m_ngen(m_ps.get_ngen()), m_subst(m_ps.get_subst()),
|
||||||
m_tc(mk_type_checker(m_env, m_ngen.mk_child(), m_ps.relax_main_opaque())) {
|
m_tc(mk_type_checker(m_env, m_ngen.mk_child(), m_ps.relax_main_opaque())) {
|
||||||
}
|
}
|
||||||
|
@ -464,8 +463,8 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
tactic inversion_tactic(name const & n, list<name> const & ids) {
|
tactic inversion_tactic(name const & n, list<name> const & ids) {
|
||||||
auto fn = [=](environment const & env, io_state const & ios, proof_state const & ps) -> optional<proof_state> {
|
auto fn = [=](environment const & env, io_state const &, proof_state const & ps) -> optional<proof_state> {
|
||||||
inversion_tac tac(env, ios, ps, ids);
|
inversion_tac tac(env, ps, ids);
|
||||||
return tac.execute(n);
|
return tac.execute(n);
|
||||||
};
|
};
|
||||||
return tactic01(fn);
|
return tactic01(fn);
|
||||||
|
|
Loading…
Reference in a new issue