fix -Wextra & -Wdeprecated in TechDraw
This commit is contained in:
@@ -65,32 +65,32 @@ PyObject* DrawPagePy::removeView(PyObject* args)
|
||||
|
||||
|
||||
// double getPageWidth() const;
|
||||
PyObject* DrawPagePy::getPageWidth(PyObject *args)
|
||||
PyObject* DrawPagePy::getPageWidth(PyObject *)
|
||||
{
|
||||
PyErr_SetString(PyExc_NotImplementedError, "Not yet implemented");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// double getPageHeight() const;
|
||||
PyObject* DrawPagePy::getPageHeight(PyObject *args)
|
||||
PyObject* DrawPagePy::getPageHeight(PyObject *)
|
||||
{
|
||||
PyErr_SetString(PyExc_NotImplementedError, "Not yet implemented");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// const char* getPageOrientation() const;
|
||||
PyObject* DrawPagePy::getPageOrientation(PyObject *args)
|
||||
PyObject* DrawPagePy::getPageOrientation(PyObject *)
|
||||
{
|
||||
PyErr_SetString(PyExc_NotImplementedError, "Not yet implemented");
|
||||
return 0;
|
||||
}
|
||||
|
||||
PyObject *DrawPagePy::getCustomAttributes(const char* attr) const
|
||||
PyObject *DrawPagePy::getCustomAttributes(const char* ) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int DrawPagePy::setCustomAttributes(const char* attr, PyObject *obj)
|
||||
int DrawPagePy::setCustomAttributes(const char* , PyObject *)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
# include <sstream>
|
||||
#endif
|
||||
|
||||
#include <strstream>
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Writer.h>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ PyObject* DrawProjGroupPy::removeProjection(PyObject* args)
|
||||
return PyInt_FromLong((long) i);;
|
||||
}
|
||||
|
||||
PyObject* DrawProjGroupPy::purgeProjections(PyObject* args)
|
||||
PyObject* DrawProjGroupPy::purgeProjections(PyObject* /*args*/)
|
||||
{
|
||||
DrawProjGroup* projGroup = getDrawProjGroupPtr();
|
||||
int i = projGroup->purgeProjections();
|
||||
|
||||
@@ -15,7 +15,7 @@ std::string DrawSVGTemplatePy::representation(void) const
|
||||
return std::string("<DrawSVGTemplate object>");
|
||||
}
|
||||
|
||||
PyObject *DrawSVGTemplatePy::getCustomAttributes(const char* attr) const
|
||||
PyObject *DrawSVGTemplatePy::getCustomAttributes(const char* ) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ App::DocumentObjectExecReturn *DrawTemplate::execute(void)
|
||||
return App::DocumentObject::execute();
|
||||
}
|
||||
|
||||
void DrawTemplate::getBlockDimensions(double &x, double &y, double &width, double &height) const
|
||||
void DrawTemplate::getBlockDimensions(double & /*x*/, double & /*y*/, double & /*width*/, double & /*height*/) const
|
||||
{
|
||||
throw Base::Exception("implement in virtual function");
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#endif
|
||||
|
||||
|
||||
#include <strstream>
|
||||
#include <App/Application.h>
|
||||
#include <Base/Writer.h>
|
||||
#include <Base/Reader.h>
|
||||
|
||||
@@ -91,12 +91,12 @@ PyObject* DrawViewClipPy::getChildViewNames(PyObject* args)
|
||||
return result;
|
||||
}
|
||||
|
||||
PyObject *DrawViewClipPy::getCustomAttributes(const char* attr) const
|
||||
PyObject *DrawViewClipPy::getCustomAttributes(const char* ) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int DrawViewClipPy::setCustomAttributes(const char* attr, PyObject *obj)
|
||||
int DrawViewClipPy::setCustomAttributes(const char* , PyObject *)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -540,7 +540,7 @@ TechDrawGeometry::Vertex* DrawViewPart::getProjVertexByIndex(int idx) const
|
||||
|
||||
//! returns existing geometry of 2D Face(idx)
|
||||
//version 1 Face has 1 wire
|
||||
std::vector<TechDrawGeometry::BaseGeom*> DrawViewPart::getProjFaceByIndex(int idx) const
|
||||
std::vector<TechDrawGeometry::BaseGeom*> DrawViewPart::getProjFaceByIndex(int /*idx*/) const
|
||||
{
|
||||
std::vector<TechDrawGeometry::BaseGeom*> result;
|
||||
const std::vector<TechDrawGeometry::Face *>& faces = getFaceGeometry();
|
||||
|
||||
Reference in New Issue
Block a user