Commit 7a68eaaf authored by Jesse Beder's avatar Jesse Beder
Browse files

Disable warning:

warning C4800: forcing value to bool 'true' or 'false' (performance warning)

for the node test, since it really doesn't make any sense in this context. (It's exactly what we intended with the "unspecified bool type".)
parent 98a181c7
...@@ -232,6 +232,7 @@ TEST(NodeTest, Bool) { ...@@ -232,6 +232,7 @@ TEST(NodeTest, Bool) {
} }
TEST(NodeTest, AutoBoolConversion) { TEST(NodeTest, AutoBoolConversion) {
#pragma warning(disable:4800)
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