mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fixed some gcc warnings.
This commit is contained in:
@@ -85,8 +85,8 @@ namespace YAML
|
|||||||
void ParseAlias(Scanner *pScanner, const ParserState& state);
|
void ParseAlias(Scanner *pScanner, const ParserState& state);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_alias;
|
|
||||||
std::string m_anchor, m_tag;
|
std::string m_anchor, m_tag;
|
||||||
Content *m_pContent;
|
Content *m_pContent;
|
||||||
|
bool m_alias;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -13,8 +13,8 @@ namespace YAML
|
|||||||
struct IterPriv
|
struct IterPriv
|
||||||
{
|
{
|
||||||
IterPriv(): type(IT_NONE) {}
|
IterPriv(): type(IT_NONE) {}
|
||||||
IterPriv(std::vector <Node *>::const_iterator it): seqIter(it), type(IT_SEQ) {}
|
IterPriv(std::vector <Node *>::const_iterator it): type(IT_SEQ), seqIter(it) {}
|
||||||
IterPriv(std::map <Node *, Node *, ltnode>::const_iterator it): mapIter(it), type(IT_MAP) {}
|
IterPriv(std::map <Node *, Node *, ltnode>::const_iterator it): type(IT_MAP), mapIter(it) {}
|
||||||
|
|
||||||
enum ITER_TYPE { IT_NONE, IT_SEQ, IT_MAP };
|
enum ITER_TYPE { IT_NONE, IT_SEQ, IT_MAP };
|
||||||
ITER_TYPE type;
|
ITER_TYPE type;
|
||||||
|
@@ -3,11 +3,13 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#pragma comment(lib, "yamlcppd.lib")
|
#pragma comment(lib, "yamlcppd.lib")
|
||||||
#else
|
#else
|
||||||
#pragma comment(lib, "yamlcpp.lib")
|
#pragma comment(lib, "yamlcpp.lib")
|
||||||
#endif
|
#endif // _DEBUG
|
||||||
|
#endif // _MSC_VER
|
||||||
|
|
||||||
void run()
|
void run()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user