mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11137 from ethereum/disableNodiscardBimap
Fix Windows Build: Disable nodiscard warning.
This commit is contained in:
commit
21e365321d
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user