diff options
Diffstat (limited to 'python/modules/IcePy/Proxy.cpp')
-rw-r--r-- | python/modules/IcePy/Proxy.cpp | 72 |
1 files changed, 38 insertions, 34 deletions
diff --git a/python/modules/IcePy/Proxy.cpp b/python/modules/IcePy/Proxy.cpp index 9be5c623df9..9803175d39a 100644 --- a/python/modules/IcePy/Proxy.cpp +++ b/python/modules/IcePy/Proxy.cpp @@ -23,6 +23,10 @@ using namespace std; using namespace IcePy; +#if defined(__GNUC__) && ((__GNUC__ >= 8)) +# pragma GCC diagnostic ignored "-Wcast-function-type" +#endif + namespace IcePy { @@ -147,7 +151,7 @@ proxyCompare(ProxyObject* p1, PyObject* other, int op) extern "C" #endif static PyObject* -proxyRepr(ProxyObject* self) +proxyRepr(ProxyObject* self, PyObject* /*args*/) { string str = (*self->proxy)->ice_toString(); return createString(str); @@ -166,7 +170,7 @@ proxyHash(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceGetCommunicator(ProxyObject* self) +proxyIceGetCommunicator(ProxyObject* self, PyObject* /*args*/) { return getCommunicatorWrapper(*self->communicator); } @@ -507,7 +511,7 @@ proxyEndIceId(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetIdentity(ProxyObject* self) +proxyIceGetIdentity(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -565,7 +569,7 @@ proxyIceIdentity(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetContext(ProxyObject* self) +proxyIceGetContext(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -626,7 +630,7 @@ proxyIceContext(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetFacet(ProxyObject* self) +proxyIceGetFacet(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -682,7 +686,7 @@ proxyIceFacet(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetAdapterId(ProxyObject* self) +proxyIceGetAdapterId(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -738,7 +742,7 @@ proxyIceAdapterId(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetEndpoints(ProxyObject* self) +proxyIceGetEndpoints(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -813,7 +817,7 @@ proxyIceEndpoints(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetLocatorCacheTimeout(ProxyObject* self) +proxyIceGetLocatorCacheTimeout(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -833,7 +837,7 @@ proxyIceGetLocatorCacheTimeout(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceGetInvocationTimeout(ProxyObject* self) +proxyIceGetInvocationTimeout(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -853,7 +857,7 @@ proxyIceGetInvocationTimeout(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceGetConnectionId(ProxyObject* self) +proxyIceGetConnectionId(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -939,7 +943,7 @@ proxyIceInvocationTimeout(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceIsConnectionCached(ProxyObject* self) +proxyIceIsConnectionCached(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -996,7 +1000,7 @@ proxyIceConnectionCached(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetEndpointSelection(ProxyObject* self) +proxyIceGetEndpointSelection(ProxyObject* self, PyObject* /*args*/) { PyObject* cls = lookupType("Ice.EndpointSelectionType"); assert(cls); @@ -1084,7 +1088,7 @@ proxyIceEndpointSelection(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceIsSecure(ProxyObject* self) +proxyIceIsSecure(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1141,7 +1145,7 @@ proxyIceSecure(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetEncodingVersion(ProxyObject* self) +proxyIceGetEncodingVersion(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1200,7 +1204,7 @@ proxyIceEncodingVersion(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceIsPreferSecure(ProxyObject* self) +proxyIceIsPreferSecure(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1257,7 +1261,7 @@ proxyIcePreferSecure(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetRouter(ProxyObject* self) +proxyIceGetRouter(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1323,7 +1327,7 @@ proxyIceRouter(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetLocator(ProxyObject* self) +proxyIceGetLocator(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1389,7 +1393,7 @@ proxyIceLocator(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceTwoway(ProxyObject* self) +proxyIceTwoway(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1411,7 +1415,7 @@ proxyIceTwoway(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceIsTwoway(ProxyObject* self) +proxyIceIsTwoway(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1434,7 +1438,7 @@ proxyIceIsTwoway(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceOneway(ProxyObject* self) +proxyIceOneway(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1456,7 +1460,7 @@ proxyIceOneway(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceIsOneway(ProxyObject* self) +proxyIceIsOneway(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1479,7 +1483,7 @@ proxyIceIsOneway(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceBatchOneway(ProxyObject* self) +proxyIceBatchOneway(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1501,7 +1505,7 @@ proxyIceBatchOneway(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceIsBatchOneway(ProxyObject* self) +proxyIceIsBatchOneway(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1524,7 +1528,7 @@ proxyIceIsBatchOneway(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceDatagram(ProxyObject* self) +proxyIceDatagram(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1546,7 +1550,7 @@ proxyIceDatagram(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceIsDatagram(ProxyObject* self) +proxyIceIsDatagram(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1569,7 +1573,7 @@ proxyIceIsDatagram(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceBatchDatagram(ProxyObject* self) +proxyIceBatchDatagram(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1591,7 +1595,7 @@ proxyIceBatchDatagram(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceIsBatchDatagram(ProxyObject* self) +proxyIceIsBatchDatagram(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1648,7 +1652,7 @@ proxyIceCompress(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetCompress(ProxyObject* self) +proxyIceGetCompress(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1711,7 +1715,7 @@ proxyIceTimeout(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetTimeout(ProxyObject* self) +proxyIceGetTimeout(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1739,7 +1743,7 @@ proxyIceGetTimeout(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceIsCollocationOptimized(ProxyObject* self) +proxyIceIsCollocationOptimized(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -1864,7 +1868,7 @@ proxyIceFixed(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetConnection(ProxyObject* self) +proxyIceGetConnection(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -2043,7 +2047,7 @@ proxyEndIceGetConnection(ProxyObject* self, PyObject* args) extern "C" #endif static PyObject* -proxyIceGetCachedConnection(ProxyObject* self) +proxyIceGetCachedConnection(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -2073,7 +2077,7 @@ proxyIceGetCachedConnection(ProxyObject* self) extern "C" #endif static PyObject* -proxyIceFlushBatchRequests(ProxyObject* self) +proxyIceFlushBatchRequests(ProxyObject* self, PyObject* /*args*/) { assert(self->proxy); @@ -2624,7 +2628,7 @@ proxyUncheckedCast(PyObject* /*self*/, PyObject* args) extern "C" #endif static PyObject* -proxyIceStaticId(PyObject* /*self*/) +proxyIceStaticId(PyObject* /*self*/, PyObject* /*args*/) { return createString(Ice::Object::ice_staticId()); } |