fix(kernel/expr): warning when compiling using clang on OSX

This commit is contained in:
Leonardo de Moura 2015-11-16 18:47:49 -08:00
parent f482e09cc2
commit d5d8ac8b44

View file

@ -322,9 +322,9 @@ inline expr cache(expr const & e) {
return e;
}
bool enable_expr_caching(bool f) {
bool r1 = enable_level_caching(f);
DEBUG_CODE(bool r1 =) enable_level_caching(f);
bool r2 = g_expr_cache_enabled;
lean_verify(r1 == r2);
lean_assert(r1 == r2);
expr_cache new_cache;
get_expr_cache().swap(new_cache);
if (f) {