diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-17 16:00:20 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-17 16:00:20 -0400 |
commit | 138c5eb5690cf20ce616609b73e75855f14bde0c (patch) | |
tree | 9b942054d6d75c9d1796fdcad0a5840fc623f5be /gpspacket.c | |
parent | e4be4c580097832da44c492f6b2ff4ecd520f5a5 (diff) | |
download | gpsd-138c5eb5690cf20ce616609b73e75855f14bde0c.tar.gz |
Banish some pointless compiler warnings.
Diffstat (limited to 'gpspacket.c')
-rw-r--r-- | gpspacket.c | 9 |
1 files changed, 6 insertions, 3 deletions
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) { |