mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Small changes to eliminate compiler warnings for 'nite' in issue 83
This commit is contained in:
@@ -25,8 +25,9 @@ namespace YAML
|
|||||||
return *pNode1 < *pNode2;
|
return *pNode1 < *pNode2;
|
||||||
}
|
}
|
||||||
|
|
||||||
Node::Node(): m_type(CT_NONE), m_pContent(0), m_alias(false), m_pIdentity(this), m_referenced(false)
|
Node::Node(): m_type(CT_NONE), m_pContent(0), m_alias(false), m_referenced(false)
|
||||||
{
|
{
|
||||||
|
m_pIdentity = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Node::~Node()
|
Node::~Node()
|
||||||
|
@@ -271,6 +271,7 @@ namespace YAML
|
|||||||
case IndentMarker::NONE: assert(false); break;
|
case IndentMarker::NONE: assert(false); break;
|
||||||
}
|
}
|
||||||
assert(false);
|
assert(false);
|
||||||
|
throw std::runtime_error("yaml-cpp: internal error, invalid indent type");
|
||||||
}
|
}
|
||||||
|
|
||||||
// PushIndentTo
|
// PushIndentTo
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
#include "directives.h"
|
#include "directives.h"
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace YAML
|
namespace YAML
|
||||||
{
|
{
|
||||||
@@ -45,6 +46,7 @@ namespace YAML
|
|||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
|
throw std::runtime_error("yaml-cpp: internal error, bad tag type");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user