Commit 1aa25e76 authored by Jesse Beder's avatar Jesse Beder
Browse files

Wrap the #pragma warning for msvc in an ifdef

parent 541fef15
...@@ -232,7 +232,9 @@ TEST(NodeTest, Bool) { ...@@ -232,7 +232,9 @@ TEST(NodeTest, Bool) {
} }
TEST(NodeTest, AutoBoolConversion) { TEST(NodeTest, AutoBoolConversion) {
#ifdef _MSC_VER
#pragma warning(disable : 4800) #pragma warning(disable : 4800)
#endif
YAML::Node node; YAML::Node node;
node["foo"] = "bar"; node["foo"] = "bar";
EXPECT_TRUE(static_cast<bool>(node["foo"])); EXPECT_TRUE(static_cast<bool>(node["foo"]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment