diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index f061d175be..5da66a6e0d 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -3892,7 +3892,8 @@ void PropertyXLinkSubList::setPyObject(PyObject *value) s.reserve(s.size()+subs.size()); s.insert(s.end(),subs.begin(),subs.end()); } - }catch(Base::Exception &e){ + } + catch(Base::Exception&){ throw Base::TypeError("Invalid type inside sequence. Must be type of (DocumentObject, (subname...))"); } setValues(std::move(values)); diff --git a/src/Gui/Command.cpp b/src/Gui/Command.cpp index ee630a157b..624feced5c 100644 --- a/src/Gui/Command.cpp +++ b/src/Gui/Command.cpp @@ -768,7 +768,8 @@ void Command::_copyVisual(const char *file, int line, const App::DocumentObject _doCommand(file,line,Gui, "%s.ViewObject.%s=getattr(%s.getLinkedObject(True).ViewObject,'%s',%s.ViewObject.%s)", objCmd.c_str(),attr_to,getObjectCmd(from).c_str(),attr_from,objCmd.c_str(),attr_to); - }catch(Base::Exception &e) { + } + catch(Base::Exception& /*e*/) { // e.ReportException(); } } diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index f62b8dbfd5..ecb90b7a44 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -1296,9 +1296,10 @@ void StdCmdRefresh::activated(int iMsg) App::AutoTransaction trans("Recompute"); try { doCommand(Doc,"App.activeDocument().recompute(None,True,True)"); - } catch(Base::Exception &e) { + } + catch (Base::Exception& /*e*/) { int ret = QMessageBox::warning(getMainWindow(), QObject::tr("Dependency error"), - QObject::tr("The document contains dependency cycles.\n" + qApp->translate("Std_Refresh", "The document contains dependency cycles.\n" "Please check the Report View for more details.\n\n" "Do you still want to proceed?"), QMessageBox::Yes, QMessageBox::No);