fix some MSVC warnings

This commit is contained in:
wmayer
2019-09-19 17:55:10 +02:00
parent a2b1fd29f8
commit 6d5ebdeafc
2 changed files with 3 additions and 2 deletions

View File

@@ -278,7 +278,7 @@ PyObject* GeometryPy::getExtensionOfType(PyObject *args)
PyErr_SetString(PartExceptionOCCError, e.what());
return 0;
}
catch(const std::bad_weak_ptr& e) {
catch(const std::bad_weak_ptr&) {
PyErr_SetString(PartExceptionOCCError, "Geometry extension does not exist anymore.");
return 0;
}
@@ -312,7 +312,7 @@ PyObject* GeometryPy::getExtensionOfName(PyObject *args)
PyErr_SetString(PartExceptionOCCError, e.what());
return 0;
}
catch(const std::bad_weak_ptr& e) {
catch(const std::bad_weak_ptr&) {
PyErr_SetString(PartExceptionOCCError, "Geometry extension does not exist anymore.");
return 0;
}