"vscode:/vscode.git/clone" did not exist on "9a4fd1bc1dc85273caad6c0603b156767d3913ce"
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) {
}
TEST(NodeTest, AutoBoolConversion) {
#ifdef _MSC_VER
#pragma warning(disable : 4800)
#endif
YAML::Node node;
node["foo"] = "bar";
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