From 4cebe50a9f23517d9d5e0d27d0a62d50eb28b195 Mon Sep 17 00:00:00 2001 From: jbeder Date: Thu, 1 Jan 2009 20:14:32 +0000 Subject: [PATCH] Removed throw() specifier in Exception (I don't remember putting it in). This may solve a gcc error (I haven't tested it yet) or it may break it further. --- include/exceptions.h | 2 +- include/parser.h | 4 ++-- yaml-reader.vcproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/exceptions.h b/include/exceptions.h index 9e41e00..41603fe 100644 --- a/include/exceptions.h +++ b/include/exceptions.h @@ -48,7 +48,7 @@ namespace YAML public: Exception(int line_, int column_, const std::string& msg_) : line(line_), column(column_), msg(msg_) {} - virtual ~Exception() throw () {} + virtual ~Exception() {} int line, column; std::string msg; diff --git a/include/parser.h b/include/parser.h index 83f611b..78ad52c 100644 --- a/include/parser.h +++ b/include/parser.h @@ -32,8 +32,8 @@ namespace YAML private: // can't copy this - Parser(const Parser& rhs) {} - Parser& operator = (const Parser& rhs) { return *this; } + Parser(const Parser&) {} + Parser& operator = (const Parser&) { return *this; } private: Scanner *m_pScanner; diff --git a/yaml-reader.vcproj b/yaml-reader.vcproj index f2522d1..57d70b9 100644 --- a/yaml-reader.vcproj +++ b/yaml-reader.vcproj @@ -115,7 +115,7 @@ AdditionalIncludeDirectories="include" RuntimeLibrary="2" EnableFunctionLevelLinking="true" - WarningLevel="3" + WarningLevel="4" DebugInformationFormat="3" />