fix some MSVC warnings
This commit is contained in:
@@ -139,6 +139,7 @@ using namespace boost::program_options;
|
||||
#include <App/CMakeScript.h>
|
||||
|
||||
#ifdef _MSC_VER // New handler for Microsoft Visual C++ compiler
|
||||
# pragma warning( disable : 4535 )
|
||||
# if !defined(_DEBUG) && defined(HAVE_SEH)
|
||||
# define FC_SE_TRANSLATOR
|
||||
# endif
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user