summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/sdltcpnet.cpp6
-rw-r--r--src/utils/xml/tinyxml2.inc3
2 files changed, 9 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)
diff --git a/src/utils/xml/tinyxml2.inc b/src/utils/xml/tinyxml2.inc
index 741cfa623..408638184 100644
--- a/src/utils/xml/tinyxml2.inc
+++ b/src/utils/xml/tinyxml2.inc
@@ -26,7 +26,10 @@
PRAGMA49(GCC diagnostic push)
PRAGMA49(GCC diagnostic ignored "-Wzero-as-null-pointer-constant")
PRAGMA49(GCC diagnostic ignored "-Wsuggest-override")
+PRAGMACLANG6GCC(GCC diagnostic push)
+PRAGMACLANG6GCC(GCC diagnostic ignored "-Wold-style-cast")
#include <tinyxml2.h>
+PRAGMACLANG6GCC(GCC diagnostic pop)
PRAGMA49(GCC diagnostic pop)
TINYXML2_INCLUDED