From 101cd80bd7fba5d8ac1a4b5d68f9b0c73a7a869e Mon Sep 17 00:00:00 2001 From: Yang Chen <40417152+yangchen-MS@users.noreply.github.com> Date: Wed, 19 Aug 2020 19:20:55 -0700 Subject: [PATCH] fixed a warning on an unreferenced local variable (#4861) The warning prevented me from building the code with VS 2019, because it was treated as an error. --- onnxruntime/test/tvm/tvm_basic_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/test/tvm/tvm_basic_test.cc b/onnxruntime/test/tvm/tvm_basic_test.cc index 03b7a67d98..0210b37b17 100644 --- a/onnxruntime/test/tvm/tvm_basic_test.cc +++ b/onnxruntime/test/tvm/tvm_basic_test.cc @@ -251,7 +251,7 @@ class FuseExecutionProviderX : public CPUExecutionProvider { tvm::TVMRetValue rvalue; try { evaluate_func_.CallPacked(tvm_args, &rvalue); - } catch (std::exception& ex) { + } catch (std::exception&) { return Status(common::ONNXRUNTIME, common::FAIL); // TODO: Translate exception to error code } if (rvalue.type_code() != kNull) {