From f85d9e0f742efcc2ec7e7ba4ae389a908fdfcea9 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 20 Mar 2022 13:43:22 +0100 Subject: [PATCH] libE57Format: fix unknown-pragma warning with clang/MSYS --- src/3rdParty/libE57Format/extern/CRCpp/inc/CRC.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/3rdParty/libE57Format/extern/CRCpp/inc/CRC.h b/src/3rdParty/libE57Format/extern/CRCpp/inc/CRC.h index 0e44d9a48f..1c41b29556 100644 --- a/src/3rdParty/libE57Format/extern/CRCpp/inc/CRC.h +++ b/src/3rdParty/libE57Format/extern/CRCpp/inc/CRC.h @@ -726,12 +726,16 @@ inline CRCType CRC::CalculateRemainder(const void * data, crcpp_size size, const // Disable warning about data loss when doing (remainder >> CHAR_BIT) when // remainder is one byte long. The algorithm is still correct in this case, // though it's possible that one additional machine instruction will be executed. +# if defined(_MSC_VER) # pragma warning (push) # pragma warning (disable : 4333) +# endif #endif remainder = (remainder >> CHAR_BIT) ^ lookupTable[static_cast(remainder ^ *current++)]; #if defined(WIN32) || defined(_WIN32) || defined(WINCE) +# if defined(_MSC_VER) # pragma warning (pop) +# endif #endif } }