Disable nodiscard warning.

This commit is contained in:
chriseth
2021-03-23 09:51:59 +01:00
parent 54cea090bf
commit f38274d94d
+10
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__)