From b5b1f06a11133a988bcff777da09a865ac523718 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Wed, 8 Jan 2020 06:04:21 +0100 Subject: [PATCH] Avoid some compilation warnings. --- src/compress_lzma.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compress_lzma.cpp b/src/compress_lzma.cpp index df310170..1f100b09 100644 --- a/src/compress_lzma.cpp +++ b/src/compress_lzma.cpp @@ -30,6 +30,12 @@ #include "compress.h" #include "mem.h" +#if (ACC_CC_CLANG) +# pragma clang diagnostic ignored "-Wshadow" +#endif +#if (ACC_CC_GNUC >= 0x040200) +# pragma GCC diagnostic ignored "-Wshadow" +#endif #if (ACC_CC_MSC) # pragma warning(disable: 4456) // -Wno-shadow #endif