diff options
-rw-r--r-- | gpsclient.c | 10 | ||||
-rw-r--r-- | gpspacket.c | 9 |
2 files changed, 12 insertions, 7 deletions
diff --git a/gpsclient.c b/gpsclient.c index 85269688..8b952fbf 100644 --- a/gpsclient.c +++ b/gpsclient.c @@ -15,7 +15,7 @@ */ static PyObject * -gpsclient_deg_to_str(PyObject *self, PyObject *args) +gpsclient_deg_to_str(PyObject *self UNUSED, PyObject *args) { int fmt; double degrees; @@ -26,7 +26,7 @@ gpsclient_deg_to_str(PyObject *self, PyObject *args) } static PyObject * -gpsclient_gpsd_units(PyObject *self, PyObject *args) +gpsclient_gpsd_units(PyObject *self UNUSED, PyObject *args) { if (!PyArg_ParseTuple(args, "")) return NULL; @@ -38,7 +38,7 @@ gpsclient_gpsd_units(PyObject *self, PyObject *args) */ static PyObject * -gpsclient_wgs84_separation(PyObject *self, PyObject *args) +gpsclient_wgs84_separation(PyObject *self UNUSED, PyObject *args) { const double lat, lon; double sep; @@ -50,7 +50,7 @@ gpsclient_wgs84_separation(PyObject *self, PyObject *args) } static PyObject * -gpsclient_maidenhead(PyObject *self, PyObject *args) +gpsclient_maidenhead(PyObject *self UNUSED, PyObject *args) { const double lat, lon; char *gs; @@ -79,6 +79,8 @@ PyDoc_STRVAR(module_doc, "Python wrapper for selected libgps library routines.\n\ "); +extern PyMODINIT_FUNC initclienthelpers(void); + PyMODINIT_FUNC initclienthelpers(void) { diff --git a/gpspacket.c b/gpspacket.c index f18ec536..43878bc4 100644 --- a/gpspacket.c +++ b/gpspacket.c @@ -50,7 +50,7 @@ typedef struct { } LexerObject; static LexerObject * -newLexerObject(PyObject *arg) +newLexerObject(PyObject *arg UNUSED) { LexerObject *self; self = PyObject_New(LexerObject, &Lexer_Type); @@ -175,7 +175,7 @@ static PyTypeObject Lexer_Type = { /* Function of no arguments returning new Lexer object */ static PyObject * -gpspacket_new(PyObject *self, PyObject *args) +gpspacket_new(PyObject *self UNUSED, PyObject *args UNUSED) { LexerObject *rv; @@ -193,7 +193,7 @@ PyDoc_STRVAR(register_report__doc__, callback must be a callable object expecting a string as parameter."); static PyObject * -register_report(LexerObject *self, PyObject *args) +register_report(LexerObject *self UNUSED, PyObject *args) { PyObject *callback = NULL; @@ -241,6 +241,9 @@ for debug message reporting. The callback will get two arguments, the error\n\ level of the message and the message itself.\n\ "); +/* banishes a pointless compiler warning */ +extern PyMODINIT_FUNC initpacket(void); + PyMODINIT_FUNC initpacket(void) { |