"git@developer.sourcefind.cn:gaoqiong/composable_kernel.git" did not exist on "b37cb71ffbc08342be60619f334a5e9c424b0673"
Commit 1f5e971f authored by NameSirius's avatar NameSirius Committed by Jesse Beder
Browse files

Fix compile warning with -Wshadow

parent b11eaf16
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#endif #endif
namespace YAML { namespace YAML {
struct EmitterStyle { namespace EmitterStyle {
enum value { Default, Block, Flow }; enum value { Default, Block, Flow };
}; };
} }
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#endif #endif
namespace YAML { namespace YAML {
struct NodeType { namespace NodeType {
enum value { Undefined, Null, Scalar, Sequence, Map }; enum value { Undefined, Null, Scalar, Sequence, Map };
}; };
} }
......
#include <algorithm>
#include <cstdio> #include <cstdio>
#include <sstream> #include <sstream>
...@@ -93,8 +92,8 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) { ...@@ -93,8 +92,8 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) {
// add non-specific tags // add non-specific tags
if (tag.empty()) if (tag.empty())
tag = (token.type == Token::NON_PLAIN_SCALAR ? "!" : "?"); tag = (token.type == Token::NON_PLAIN_SCALAR ? "!" : "?");
if (token.type == Token::PLAIN_SCALAR if (token.type == Token::PLAIN_SCALAR
&& tag.compare("?") == 0 && IsNullString(token.value)) { && tag.compare("?") == 0 && IsNullString(token.value)) {
eventHandler.OnNull(mark, anchor); eventHandler.OnNull(mark, anchor);
m_scanner.pop(); m_scanner.pop();
......
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