Merge pull request #10835 from wwmayer/path_fix_warnings

Path: fix compiler warnings
This commit is contained in:
sliptonic
2023-10-02 10:30:58 -05:00
committed by GitHub
3 changed files with 10 additions and 6 deletions

View File

@@ -501,6 +501,8 @@ std::shared_ptr<Area> Area::getClearedArea(double tipDiameter, double diameter)
#define AREA_MY(_param) myParams.PARAM_FNAME(_param)
PARAM_ENUM_CONVERT(AREA_MY, PARAM_FNAME, PARAM_ENUM_EXCEPT, AREA_PARAMS_OFFSET_CONF);
PARAM_ENUM_CONVERT(AREA_MY, PARAM_FNAME, PARAM_ENUM_EXCEPT, AREA_PARAMS_CLIPPER_FILL);
(void)SubjectFill;
(void)ClipFill;
// Do not fit arcs after these offsets; it introduces unnecessary approximation error, and all off
// those arcs will be converted back to segments again for clipper differencing in getRestArea anyway

View File

@@ -62,17 +62,17 @@ same algorithm</UserDocu>
<UserDocu></UserDocu>
</Documentation>
</Methode>
<Methode Name="getClearedArea" Keyword="true">
<Methode Name="getClearedArea">
<Documentation>
<UserDocu></UserDocu>
</Documentation>
</Methode>
<Methode Name="getRestArea" Keyword="true">
<Methode Name="getRestArea">
<Documentation>
<UserDocu></UserDocu>
</Documentation>
</Methode>
<Methode Name="toTopoShape" Keyword="true">
<Methode Name="toTopoShape">
<Documentation>
<UserDocu></UserDocu>
</Documentation>

View File

@@ -403,7 +403,7 @@ PyObject* AreaPy::makeSections(PyObject *args, PyObject *keywds)
} PY_CATCH_OCC
}
PyObject* AreaPy::getClearedArea(PyObject *args, PyObject *keywds)
PyObject* AreaPy::getClearedArea(PyObject *args)
{
PY_TRY {
double tipDiameter, diameter;
@@ -415,7 +415,7 @@ PyObject* AreaPy::getClearedArea(PyObject *args, PyObject *keywds)
} PY_CATCH_OCC
}
PyObject* AreaPy::getRestArea(PyObject *args, PyObject *keywds)
PyObject* AreaPy::getRestArea(PyObject *args)
{
PY_TRY {
PyObject *pyClearedAreas;
@@ -445,9 +445,11 @@ PyObject* AreaPy::getRestArea(PyObject *args, PyObject *keywds)
} PY_CATCH_OCC
}
PyObject* AreaPy::toTopoShape(PyObject *args, PyObject *keywds)
PyObject* AreaPy::toTopoShape(PyObject *args)
{
PY_TRY {
if (!PyArg_ParseTuple(args, ""))
return nullptr;
return Py::new_reference_to(Part::shape2pyshape(getAreaPtr()->toTopoShape()));
} PY_CATCH_OCC
}