From 4726a402a32a0553cf4da8c59646d8bc99c08383 Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Wed, 11 Nov 2020 10:02:32 -0800 Subject: [PATCH] [mlir][Python] Fix 'unreferenced local variable' warning on MSVC. Differential Revision: https://reviews.llvm.org/D91282 --- mlir/lib/Bindings/Python/PybindUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Bindings/Python/PybindUtils.h b/mlir/lib/Bindings/Python/PybindUtils.h index 3b24d6d..25cbba2 100644 --- a/mlir/lib/Bindings/Python/PybindUtils.h +++ b/mlir/lib/Bindings/Python/PybindUtils.h @@ -85,7 +85,7 @@ struct MlirDefaultingCaster { value = DefaultingTy{ pybind11::cast(src)}; return true; - } catch (std::exception &e) { + } catch (std::exception &) { return false; } } -- 2.7.4