libE57Format: fix unknown-pragma warning with clang/MSYS

This commit is contained in:
wmayer
2022-03-20 13:43:22 +01:00
parent fa81d0d21c
commit f85d9e0f74

View File

@@ -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<unsigned char>(remainder ^ *current++)];
#if defined(WIN32) || defined(_WIN32) || defined(WINCE)
# if defined(_MSC_VER)
# pragma warning (pop)
# endif
#endif
}
}