Skip to content

Commit

Permalink
fix -Wextra in JtReader
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 23, 2016
1 parent 3d6b4aa commit 4afc110
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/Mod/JtReader/App/AppJtReaderPy.cpp
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -231,7 +231,7 @@ insert(PyObject *self, PyObject *args)

} PY_CATCH;

Py_Return;
Py_Return;
}


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


2 changes: 1 addition & 1 deletion src/Mod/JtReader/App/JrJt/JtReader.cpp
Expand Up @@ -72,7 +72,7 @@ const std::vector<TOC_Entry>& 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);
Expand Down

0 comments on commit 4afc110

Please sign in to comment.