From a45f083e0019b0064b6afdcdceec0ad5b609f860 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Wed, 3 Sep 2008 22:19:27 +0000 Subject: [PATCH] Fixed some gcc warnings. --- include/node.h | 2 +- src/iterpriv.h | 4 ++-- yaml-reader/main.cpp | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/node.h b/include/node.h index 3ddfb33..6d604c9 100644 --- a/include/node.h +++ b/include/node.h @@ -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; }; } diff --git a/src/iterpriv.h b/src/iterpriv.h index 80d7d6a..5c29366 100644 --- a/src/iterpriv.h +++ b/src/iterpriv.h @@ -13,8 +13,8 @@ namespace YAML struct IterPriv { IterPriv(): type(IT_NONE) {} - IterPriv(std::vector ::const_iterator it): seqIter(it), type(IT_SEQ) {} - IterPriv(std::map ::const_iterator it): mapIter(it), type(IT_MAP) {} + IterPriv(std::vector ::const_iterator it): type(IT_SEQ), seqIter(it) {} + IterPriv(std::map ::const_iterator it): type(IT_MAP), mapIter(it) {} enum ITER_TYPE { IT_NONE, IT_SEQ, IT_MAP }; ITER_TYPE type; diff --git a/yaml-reader/main.cpp b/yaml-reader/main.cpp index 9ee3f0e..1d32cba 100644 --- a/yaml-reader/main.cpp +++ b/yaml-reader/main.cpp @@ -3,11 +3,13 @@ #include #include +#ifdef _MSC_VER #ifdef _DEBUG #pragma comment(lib, "yamlcppd.lib") #else #pragma comment(lib, "yamlcpp.lib") -#endif +#endif // _DEBUG +#endif // _MSC_VER void run() {