Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f17864

Browse files
committed
Fix multiple unreferenced local variable warnings
1 parent e6448ba commit 3f17864

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/_backend_agg_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ PyRendererAgg_draw_path_collection(PyRendererAgg *self, PyObject *args, PyObject
378378
antialiaseds,
379379
offset_position)));
380380
}
381-
catch (py::exception &e)
381+
catch (const py::exception &)
382382
{
383383
return NULL;
384384
}

src/_path_wrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static PyObject *Py_get_path_collection_extents(PyObject *self, PyObject *args,
283283
(get_path_collection_extents(
284284
master_transform, paths, transforms, offsets, offset_trans, e)));
285285
}
286-
catch (py::exception &e)
286+
catch (const py::exception &)
287287
{
288288
return NULL;
289289
}
@@ -351,7 +351,7 @@ static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args, PyO
351351
offset_position,
352352
result)));
353353
}
354-
catch (py::exception &e)
354+
catch (const py::exception &)
355355
{
356356
return NULL;
357357
}

src/py_exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class exception : public std::exception
2323
{ \
2424
a; \
2525
} \
26-
catch (const py::exception &e) \
26+
catch (const py::exception &) \
2727
{ \
2828
{ \
2929
cleanup; \

0 commit comments

Comments
 (0)