Fixed some gcc warnings.

This commit is contained in:
jbeder
2008-09-03 22:19:27 +00:00
parent 7f2c3591e3
commit 859ac5e520
3 changed files with 6 additions and 4 deletions

View File

@@ -85,8 +85,8 @@ namespace YAML
void ParseAlias(Scanner *pScanner, const ParserState& state);
private:
bool m_alias;
std::string m_anchor, m_tag;
Content *m_pContent;
bool m_alias;
};
}

View File

@@ -13,8 +13,8 @@ namespace YAML
struct IterPriv
{
IterPriv(): type(IT_NONE) {}
IterPriv(std::vector <Node *>::const_iterator it): seqIter(it), type(IT_SEQ) {}
IterPriv(std::map <Node *, Node *, ltnode>::const_iterator it): mapIter(it), type(IT_MAP) {}
IterPriv(std::vector <Node *>::const_iterator it): type(IT_SEQ), seqIter(it) {}
IterPriv(std::map <Node *, Node *, ltnode>::const_iterator it): type(IT_MAP), mapIter(it) {}
enum ITER_TYPE { IT_NONE, IT_SEQ, IT_MAP };
ITER_TYPE type;

View File

@@ -3,11 +3,13 @@
#include <fstream>
#include <iostream>
#ifdef _MSC_VER
#ifdef _DEBUG
#pragma comment(lib, "yamlcppd.lib")
#else
#pragma comment(lib, "yamlcpp.lib")
#endif
#endif // _DEBUG
#endif // _MSC_VER
void run()
{