From d4bac9e259ee9cb0b631b49bfaaab1d9af59d784 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 19 Sep 2019 17:55:10 +0200 Subject: [PATCH] fix some MSVC warnings --- src/App/Application.cpp | 1 + src/Mod/Part/App/GeometryPyImp.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 5288961a48..a16464215c 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -139,6 +139,7 @@ using namespace boost::program_options; #include #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 diff --git a/src/Mod/Part/App/GeometryPyImp.cpp b/src/Mod/Part/App/GeometryPyImp.cpp index 65b7f449e2..c17aa0d2e6 100644 --- a/src/Mod/Part/App/GeometryPyImp.cpp +++ b/src/Mod/Part/App/GeometryPyImp.cpp @@ -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; }