summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-07 02:18:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-07 02:18:30 +0300
commite41d5dee07d1778d53e098de6862fe865798d5fb (patch)
tree9a9de2a0d1293b700f728d98b5e82e9ece658796 /src/net/sdltcpnet.cpp
parentbd530fb98a1b3b8406396a6b8bc0823bf211f72d (diff)
downloadmv-e41d5dee07d1778d53e098de6862fe865798d5fb.tar.gz
mv-e41d5dee07d1778d53e098de6862fe865798d5fb.tar.bz2
mv-e41d5dee07d1778d53e098de6862fe865798d5fb.tar.xz
mv-e41d5dee07d1778d53e098de6862fe865798d5fb.zip
Add possible SDL warning fix with gcc snapshot.
Diffstat (limited to 'src/net/sdltcpnet.cpp')
-rw-r--r--src/net/sdltcpnet.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp
index fbd852e53..d2cd51c64 100644
--- a/src/net/sdltcpnet.cpp
+++ b/src/net/sdltcpnet.cpp
@@ -41,10 +41,10 @@
#endif // defined __linux__ || defined __linux
-PRAGMACLANG6(GCC diagnostic push)
-PRAGMACLANG6(GCC diagnostic ignored "-Wold-style-cast")
+PRAGMACLANG6GCC(GCC diagnostic push)
+PRAGMACLANG6GCC(GCC diagnostic ignored "-Wold-style-cast")
#include "net/sdltcpnet.h"
-PRAGMACLANG6(GCC diagnostic pop)
+PRAGMACLANG6GCC(GCC diagnostic pop)
#include "debug.h"
@@ -151,10 +151,10 @@ int TcpNet::addSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock)
int TcpNet::socketReady(const TcpNet::Socket sock)
{
- PRAGMACLANG6(GCC diagnostic push)
- PRAGMACLANG6(GCC diagnostic ignored "-Wold-style-cast")
+ PRAGMACLANG6GCC(GCC diagnostic push)
+ PRAGMACLANG6GCC(GCC diagnostic ignored "-Wold-style-cast")
return SDLNet_SocketReady(sock);
- PRAGMACLANG6(GCC diagnostic pop)
+ PRAGMACLANG6GCC(GCC diagnostic pop)
}
int TcpNet::checkSockets(const TcpNet::SocketSet set, const Uint32 timeout)