From a5c11b12df43565613fe1fd6514404d2c9fef7a8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 Oct 2017 21:03:25 +0300 Subject: Disable warning -Wundef in zlib.h. --- src/fs/virtfs/zipreader.cpp | 3 +++ src/net/download.cpp | 3 +++ src/resources/mapreader.cpp | 3 +++ src/utils/dumplibs.cpp | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/fs/virtfs/zipreader.cpp b/src/fs/virtfs/zipreader.cpp index 2d473bec7..45390b48d 100644 --- a/src/fs/virtfs/zipreader.cpp +++ b/src/fs/virtfs/zipreader.cpp @@ -30,7 +30,10 @@ #include "utils/delete2.h" #include "utils/stringutils.h" +PRAGMA4(GCC diagnostic push) +PRAGMA4(GCC diagnostic ignored "-Wundef") #include +PRAGMA4(GCC diagnostic pop) PRAGMA48(GCC diagnostic push) PRAGMA48(GCC diagnostic ignored "-Wshadow") #include diff --git a/src/net/download.cpp b/src/net/download.cpp index 9068f15ca..4d82a2116 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -30,7 +30,10 @@ #include "utils/cast.h" #include "utils/sdlhelper.h" +PRAGMA4(GCC diagnostic push) +PRAGMA4(GCC diagnostic ignored "-Wundef") #include +PRAGMA4(GCC diagnostic pop) #include diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 4d0b89b3a..4eabd13ec 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -64,7 +64,10 @@ #include "utils/translation/podict.h" +PRAGMA4(GCC diagnostic push) +PRAGMA4(GCC diagnostic ignored "-Wundef") #include +PRAGMA4(GCC diagnostic pop) #include "debug.h" diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp index 420ef62ce..35dda6dbc 100644 --- a/src/utils/dumplibs.cpp +++ b/src/utils/dumplibs.cpp @@ -36,7 +36,10 @@ PRAGMACLANG6GCC(GCC diagnostic pop) #include PRAGMA48(GCC diagnostic pop) +PRAGMA4(GCC diagnostic push) +PRAGMA4(GCC diagnostic ignored "-Wundef") #include +PRAGMA4(GCC diagnostic pop) #include -- cgit v1.2.3-70-g09d2