From b0db328a5ea1cbf7137d65e4604cc70f4225f40f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 May 2016 00:51:11 +0300 Subject: Guard include sdltcpnet.h with pragma in all files. --- src/net/ea/network.h | 4 ++++ src/net/ipc.h | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'src/net') diff --git a/src/net/ea/network.h b/src/net/ea/network.h index 61d797a85..508f85429 100644 --- a/src/net/ea/network.h +++ b/src/net/ea/network.h @@ -24,7 +24,11 @@ #define NET_EA_NETWORK_H #include "net/serverinfo.h" + +PRAGMACLANG6(GCC diagnostic push) +PRAGMACLANG6(GCC diagnostic ignored "-Wold-style-cast") #include "net/sdltcpnet.h" +PRAGMACLANG6(GCC diagnostic pop) struct PacketInfo; diff --git a/src/net/ipc.h b/src/net/ipc.h index 934085736..667949f2b 100644 --- a/src/net/ipc.h +++ b/src/net/ipc.h @@ -21,7 +21,12 @@ #ifndef NET_IPC_H #define NET_IPC_H +#include "localconsts.h" + +PRAGMACLANG6(GCC diagnostic push) +PRAGMACLANG6(GCC diagnostic ignored "-Wold-style-cast") #include "net/sdltcpnet.h" +PRAGMACLANG6(GCC diagnostic pop) #include #include -- cgit v1.2.3-70-g09d2