From dd145926a24b79c72fbdf6d61fd4e3a67e52f459 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Thu, 2 Jul 2015 07:26:00 -0700 Subject: [PATCH] fix(library/coercion): compilation warning --- src/library/coercion.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/library/coercion.cpp b/src/library/coercion.cpp index a1745f71d5..60753b7909 100644 --- a/src/library/coercion.cpp +++ b/src/library/coercion.cpp @@ -311,8 +311,7 @@ static environment add_coercion_core(environment const & env, return new_env; } -static environment add_coercion(environment const & env, io_state const & ios, - name const & f, name const & C, bool persistent) { +static environment add_coercion(environment const & env, name const & f, name const & C, bool persistent) { declaration d = env.get(f); unsigned num = 0; buffer args; @@ -340,7 +339,7 @@ static environment add_coercion(environment const & env, io_state const & ios, } } -environment add_coercion(environment const & env, io_state const & ios, name const & f, bool persistent) { +environment add_coercion(environment const & env, io_state const &, name const & f, bool persistent) { declaration d = env.get(f); expr t = d.get_type(); check_pi(f, t); @@ -358,10 +357,10 @@ environment add_coercion(environment const & env, io_state const & ios, name con --i; if (i == 0) { // last alternative - return add_coercion(env, ios, f, Cs[i], persistent); + return add_coercion(env, f, Cs[i], persistent); } else { try { - return add_coercion(env, ios, f, Cs[i], persistent); + return add_coercion(env, f, Cs[i], persistent); } catch (exception &) { // failed, keep trying... }