mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Wrap the #pragma warning for msvc in an ifdef
This commit is contained in:
@@ -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"]));
|
||||
|
Reference in New Issue
Block a user