Merge pull request #11137 from ethereum/disableNodiscardBimap

Fix Windows Build: Disable nodiscard warning.
This commit is contained in:
chriseth 2021-03-23 10:47:01 +01:00 committed by GitHub
commit 21e365321d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,18 @@
#pragma clang diagnostic ignored "-Wredeclared-class-member"
#endif // defined(__clang__)
// Disable warning about nodiscard. Could be a compiler bug, might be removed in the future.
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4834)
#endif
#include <boost/bimap.hpp>
#if defined(_MSC_VER)
#pragma warning(pop)
#endif
#if defined(__clang__)
#pragma clang diagnostic pop
#endif // defined(__clang__)