diff --git a/src/xml_parsing.cpp b/src/xml_parsing.cpp index 955e5f504..8bf8343c6 100644 --- a/src/xml_parsing.cpp +++ b/src/xml_parsing.cpp @@ -20,6 +20,7 @@ #ifdef _MSC_VER #pragma warning(disable : 4996) // do not complain about sprintf +#pragma warning(disable : 4702) // Unreachable code in "SubTree" handling. #endif #include "behaviortree_cpp_v3/xml_parsing.h" @@ -328,7 +329,8 @@ void VerifyXML(const std::string& xml_text, { ThrowError(node->GetLineNum(), " was deprecated"); } - else{ + else + { ThrowError(node->GetLineNum(), " should not have any child"); } }