fix -Wextra in FreeCADGui

This commit is contained in:
wmayer
2016-09-21 20:54:52 +02:00
parent f50e5a552b
commit 1e6dcabefc
106 changed files with 882 additions and 496 deletions

View File

@@ -67,7 +67,7 @@ SelectionFilterGate::~SelectionFilterGate()
delete Filter;
}
bool SelectionFilterGate::allow(App::Document*pDoc,App::DocumentObject*pObj, const char*sSubName)
bool SelectionFilterGate::allow(App::Document* /*pDoc*/, App::DocumentObject*pObj, const char*sSubName)
{
return Filter->test(pObj,sSubName);
}
@@ -276,6 +276,8 @@ Py::Object SelectionFilterPy::repr()
Py::Object SelectionFilterPy::match(const Py::Tuple& args)
{
if (!PyArg_ParseTuple(args.ptr(), ""))
throw Py::Exception();
return Py::Boolean(filter.match());
}