fix -Wextra & -Wdeprecated in TechDraw

This commit is contained in:
wmayer
2016-09-22 19:32:16 +02:00
parent fa0b094e6a
commit c457fc468c
32 changed files with 76 additions and 35 deletions

View File

@@ -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;
}

View File

@@ -26,7 +26,6 @@
# include <sstream>
#endif
#include <strstream>
#include <Base/Console.h>
#include <Base/Writer.h>

View File

@@ -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();

View File

@@ -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;
}

View File

@@ -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");
}

View File

@@ -29,7 +29,6 @@
#endif
#include <strstream>
#include <App/Application.h>
#include <Base/Writer.h>
#include <Base/Reader.h>

View File

@@ -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;
}

View File

@@ -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();