diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-07 00:33:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-07 00:33:28 +0300 |
commit | c35ae089aaa484b72c787625d2dd9a1481fa15b6 (patch) | |
tree | 31b4794c00781906c2fa0f43701b15e280cad751 /src/net/sdltcpnet.cpp | |
parent | 004770d058514aa74aed703d23c2066e9671cce6 (diff) | |
download | plus-c35ae089aaa484b72c787625d2dd9a1481fa15b6.tar.gz plus-c35ae089aaa484b72c787625d2dd9a1481fa15b6.tar.bz2 plus-c35ae089aaa484b72c787625d2dd9a1481fa15b6.tar.xz plus-c35ae089aaa484b72c787625d2dd9a1481fa15b6.zip |
Fix old style cast in sdltcpnet.cpp and tinyxml2.inc
Diffstat (limited to 'src/net/sdltcpnet.cpp')
-rw-r--r-- | src/net/sdltcpnet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp index 857e85140..063bf806f 100644 --- a/src/net/sdltcpnet.cpp +++ b/src/net/sdltcpnet.cpp @@ -154,7 +154,10 @@ TcpNet::SocketSet TcpNet::allocSocketSet(const int maxsockets) int TcpNet::addSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock) { + PRAGMACLANG6GCC(GCC diagnostic push) + PRAGMACLANG6GCC(GCC diagnostic ignored "-Wold-style-cast") return SDLNet_TCP_AddSocket(set, sock); + PRAGMACLANG6GCC(GCC diagnostic pop) } int TcpNet::socketReady(const TcpNet::Socket sock) @@ -177,7 +180,10 @@ int TcpNet::recv(const TcpNet::Socket sock, void *const data, const int maxlen) int TcpNet::delSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock) { + PRAGMACLANG6GCC(GCC diagnostic push) + PRAGMACLANG6GCC(GCC diagnostic ignored "-Wold-style-cast") return SDLNet_TCP_DelSocket(set, sock); + PRAGMACLANG6GCC(GCC diagnostic pop) } void TcpNet::freeSocketSet(const TcpNet::SocketSet set) |