fix(library/elaborator): avoid unused variable warning in release build

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-01-02 12:40:35 -08:00
parent 430b75f38f
commit 9c5fa72f56

View file

@ -1053,6 +1053,7 @@ class elaborator::imp {
*/
void imitate_equality(expr const & a, expr const & b, unification_constraint const & c) {
lean_assert(is_metavar(a));
static_cast<void>(b); // this line is just to avoid a warning, b is only used in an assertion
lean_assert(is_eq(b));
lean_assert(!is_assigned(a));
lean_assert(has_local_context(a));