From 9115f6031f703d35aba8539c6a3bad4897baf5b9 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Thu, 19 Nov 2020 01:03:58 -0500 Subject: [PATCH] Suppress msvc warning due to pragma gcc --- thirdparty/gzip-hpp/decompress.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thirdparty/gzip-hpp/decompress.hpp b/thirdparty/gzip-hpp/decompress.hpp index ca0b589116..bd1af5fe72 100644 --- a/thirdparty/gzip-hpp/decompress.hpp +++ b/thirdparty/gzip-hpp/decompress.hpp @@ -48,13 +48,17 @@ inline void decompress(const char* data, "either increase the limit or reduce the buffer size" ); } +#ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wold-style-cast" +#endif if (inflateInit2(&inflate_s, window_bits) != Z_OK) { throw std::runtime_error("inflate init failed"); } +#ifdef __GNUC__ #pragma GCC diagnostic pop +#endif inflate_s.next_in = reinterpret_cast(data); inflate_s.avail_in = static_cast(size); std::string buffer(static_cast(size_step), char());