From 3f178643698de0e24f8583726b14234126822122 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Tue, 17 Oct 2017 19:41:09 +0300 Subject: [PATCH] Fix multiple unreferenced local variable warnings --- src/_backend_agg_wrapper.cpp | 2 +- src/_path_wrapper.cpp | 4 ++-- src/py_exceptions.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_backend_agg_wrapper.cpp b/src/_backend_agg_wrapper.cpp index 4e63666dbb3a..ea6c7b1267b0 100644 --- a/src/_backend_agg_wrapper.cpp +++ b/src/_backend_agg_wrapper.cpp @@ -378,7 +378,7 @@ PyRendererAgg_draw_path_collection(PyRendererAgg *self, PyObject *args, PyObject antialiaseds, offset_position))); } - catch (py::exception &e) + catch (const py::exception &) { return NULL; } diff --git a/src/_path_wrapper.cpp b/src/_path_wrapper.cpp index e19b85038161..1f0b61732189 100644 --- a/src/_path_wrapper.cpp +++ b/src/_path_wrapper.cpp @@ -283,7 +283,7 @@ static PyObject *Py_get_path_collection_extents(PyObject *self, PyObject *args, (get_path_collection_extents( master_transform, paths, transforms, offsets, offset_trans, e))); } - catch (py::exception &e) + catch (const py::exception &) { return NULL; } @@ -351,7 +351,7 @@ static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args, PyO offset_position, result))); } - catch (py::exception &e) + catch (const py::exception &) { return NULL; } diff --git a/src/py_exceptions.h b/src/py_exceptions.h index c1637fca70eb..1d54eb744901 100644 --- a/src/py_exceptions.h +++ b/src/py_exceptions.h @@ -23,7 +23,7 @@ class exception : public std::exception { \ a; \ } \ - catch (const py::exception &e) \ + catch (const py::exception &) \ { \ { \ cleanup; \