From e41d5dee07d1778d53e098de6862fe865798d5fb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 May 2017 02:18:30 +0300 Subject: Add possible SDL warning fix with gcc snapshot. --- src/net/ea/network.h | 6 +++--- src/net/ipc.h | 6 +++--- src/net/sdltcpnet.cpp | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/network.h b/src/net/ea/network.h index 71b823633..cd5be69e3 100644 --- a/src/net/ea/network.h +++ b/src/net/ea/network.h @@ -25,10 +25,10 @@ #include "net/serverinfo.h" -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) struct PacketInfo; diff --git a/src/net/ipc.h b/src/net/ipc.h index 453bbedcd..4a346e890 100644 --- a/src/net/ipc.h +++ b/src/net/ipc.h @@ -23,10 +23,10 @@ #include "localconsts.h" -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 #include 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) -- cgit v1.2.3-60-g2f50