From 821fed1c2ddbab0d09d53b87b557ced62ad071a4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 May 2016 00:22:31 +0300 Subject: Apply ignore pragma -Wold-style-cast only for clang > 3.7 --- src/net/sdltcpnet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net') diff --git a/src/net/sdltcpnet.h b/src/net/sdltcpnet.h index c96baf37a..b67abfcc3 100644 --- a/src/net/sdltcpnet.h +++ b/src/net/sdltcpnet.h @@ -30,10 +30,10 @@ #pragma GCC diagnostic pop #endif -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wold-style-cast" +PRAGMACLANG6(GCC diagnostic push) +PRAGMACLANG6(GCC diagnostic ignored "-Wold-style-cast") #include -#pragma GCC diagnostic pop +PRAGMACLANG6(GCC diagnostic pop) #include "localconsts.h" -- cgit v1.2.3-60-g2f50