Wrap the #pragma warning for msvc in an ifdef

This commit is contained in:
beder 2014-03-25 22:08:34 -05:00
parent c2db9be88c
commit 715b769650

View File

@ -232,7 +232,9 @@ TEST(NodeTest, Bool) {
}
TEST(NodeTest, AutoBoolConversion) {
#ifdef _MSC_VER
#pragma warning(disable : 4800)
#endif
YAML::Node node;
node["foo"] = "bar";
EXPECT_TRUE(static_cast<bool>(node["foo"]));