diff options
Diffstat (limited to 'python/modules/IcePy/Connection.cpp')
-rw-r--r-- | python/modules/IcePy/Connection.cpp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/python/modules/IcePy/Connection.cpp b/python/modules/IcePy/Connection.cpp index 73316af5a60..3bd66da1ba9 100644 --- a/python/modules/IcePy/Connection.cpp +++ b/python/modules/IcePy/Connection.cpp @@ -19,6 +19,10 @@ using namespace std; using namespace IcePy; +#if defined(__GNUC__) && ((__GNUC__ >= 8)) +# pragma GCC diagnostic ignored "-Wcast-function-type" +#endif + namespace { @@ -436,7 +440,7 @@ connectionSetAdapter(ConnectionObject* self, PyObject* args) extern "C" #endif static PyObject* -connectionGetAdapter(ConnectionObject* self) +connectionGetAdapter(ConnectionObject* self, PyObject* /*args*/) { Ice::ObjectAdapterPtr adapter; @@ -500,7 +504,7 @@ connectionFlushBatchRequests(ConnectionObject* self, PyObject* args) extern "C" #endif static PyObject* -connectionFlushBatchRequestsAsync(ConnectionObject* self, PyObject* args, PyObject* /*kwds*/) +connectionFlushBatchRequestsAsync(ConnectionObject* self, PyObject* args) { PyObject* compressBatchType = lookupType("Ice.CompressBatch"); PyObject* compressBatch; @@ -746,7 +750,7 @@ connectionSetHeartbeatCallback(ConnectionObject* self, PyObject* args) extern "C" #endif static PyObject* -connectionHeartbeat(ConnectionObject* self) +connectionHeartbeat(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); try @@ -940,7 +944,7 @@ connectionSetACM(ConnectionObject* self, PyObject* args) extern "C" #endif static PyObject* -connectionGetACM(ConnectionObject* self) +connectionGetACM(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); @@ -1013,7 +1017,7 @@ connectionGetACM(ConnectionObject* self) extern "C" #endif static PyObject* -connectionType(ConnectionObject* self) +connectionType(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); string type; @@ -1034,7 +1038,7 @@ connectionType(ConnectionObject* self) extern "C" #endif static PyObject* -connectionTimeout(ConnectionObject* self) +connectionTimeout(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); int timeout; @@ -1055,7 +1059,7 @@ connectionTimeout(ConnectionObject* self) extern "C" #endif static PyObject* -connectionToString(ConnectionObject* self) +connectionToString(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); string str; @@ -1076,7 +1080,7 @@ connectionToString(ConnectionObject* self) extern "C" #endif static PyObject* -connectionGetInfo(ConnectionObject* self) +connectionGetInfo(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); try @@ -1095,7 +1099,7 @@ connectionGetInfo(ConnectionObject* self) extern "C" #endif static PyObject* -connectionGetEndpoint(ConnectionObject* self) +connectionGetEndpoint(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); try @@ -1142,7 +1146,7 @@ connectionSetBufferSize(ConnectionObject* self, PyObject* args) extern "C" #endif static PyObject* -connectionThrowException(ConnectionObject* self) +connectionThrowException(ConnectionObject* self, PyObject* /*args*/) { assert(self->connection); try |