From 4afc110e6f34f37cd11047ec0628aedcfff435ab Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 23 Sep 2016 21:28:53 +0200 Subject: [PATCH] fix -Wextra in JtReader --- src/Mod/JtReader/App/AppJtReaderPy.cpp | 12 ++++++------ src/Mod/JtReader/App/JrJt/JtReader.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mod/JtReader/App/AppJtReaderPy.cpp b/src/Mod/JtReader/App/AppJtReaderPy.cpp index c497a5edf..c11cb70a2 100644 --- a/src/Mod/JtReader/App/AppJtReaderPy.cpp +++ b/src/Mod/JtReader/App/AppJtReaderPy.cpp @@ -46,7 +46,7 @@ using namespace MeshCore; //using namespace JtReader; /* module functions */ -static PyObject * read(PyObject *self, PyObject *args) +static PyObject * read(PyObject * /*self*/, PyObject *args) { char* Name; if (!PyArg_ParseTuple(args, "et","utf-8",&Name)) @@ -85,7 +85,7 @@ static PyObject * read(PyObject *self, PyObject *args) } static PyObject * -open(PyObject *self, PyObject *args) +open(PyObject * /*self*/, PyObject *args) { char* Name; if (!PyArg_ParseTuple(args, "et","utf-8",&Name)) @@ -153,13 +153,13 @@ open(PyObject *self, PyObject *args) } PY_CATCH; - Py_Return; + Py_Return; } /* module functions */ static PyObject * -insert(PyObject *self, PyObject *args) +insert(PyObject * /*self*/, PyObject *args) { char* Name; const char* DocName; @@ -231,7 +231,7 @@ insert(PyObject *self, PyObject *args) } PY_CATCH; - Py_Return; + Py_Return; } @@ -240,7 +240,7 @@ struct PyMethodDef JtReader_methods[] = { {"open" ,open , Py_NEWARGS, "open a jt file in a new Document"}, {"insert" ,insert, Py_NEWARGS, "isert a jt file in a existing document"}, {"read" ,read, Py_NEWARGS, "Read a Mesh from a jt file and returns a Mesh object."}, - {NULL, NULL} + {NULL, NULL, 0, NULL} }; diff --git a/src/Mod/JtReader/App/JrJt/JtReader.cpp b/src/Mod/JtReader/App/JrJt/JtReader.cpp index e67f5a43b..e65519bfb 100644 --- a/src/Mod/JtReader/App/JrJt/JtReader.cpp +++ b/src/Mod/JtReader/App/JrJt/JtReader.cpp @@ -72,7 +72,7 @@ const std::vector& JtReader::readToc() } -void JtReader::readLodSegment(const TOC_Entry& toc, LodHandler& handler) +void JtReader::readLodSegment(const TOC_Entry& toc, LodHandler& /*handler*/) { std::ifstream strm; strm.open(_fileName, ios::binary);