From 9f7609de653384e21070885d88a0b185e0802f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 1 Mar 2010 01:21:54 +0100 Subject: [PATCH] GCC exception fix --- library/DFError.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/library/DFError.h b/library/DFError.h index efbc24000..3e905b491 100644 --- a/library/DFError.h +++ b/library/DFError.h @@ -87,8 +87,7 @@ namespace DFHack s << _key; key = s.str(); } - virtual ~MissingMemoryDefinition() throw() - {}; + virtual ~MissingMemoryDefinition() throw(){}; // (perhaps it should be an enum, but this is intended for easy printing/logging) // type can be any of the following: @@ -125,6 +124,8 @@ namespace DFHack const int id; const int row; const int col; + + virtual ~MemoryXmlParse() throw(){}; virtual const char* what() const throw() { @@ -140,6 +141,8 @@ namespace DFHack MemoryXmlBadAttribute(const char* _attr) : attr(_attr) {} std::string attr; + + virtual ~MemoryXmlBadAttribute() throw(){}; virtual const char* what() const throw() { @@ -153,6 +156,8 @@ namespace DFHack { public: MemoryXmlNoRoot() {} + + virtual ~MemoryXmlNoRoot() throw(){}; virtual const char* what() const throw() { @@ -164,6 +169,7 @@ namespace DFHack { public: MemoryXmlNoDFExtractor(const char* _name) : name(_name) {} + virtual ~MemoryXmlNoDFExtractor() throw(){}; std::string name; @@ -179,6 +185,7 @@ namespace DFHack { public: MemoryXmlUnderspecifiedEntry() {} + virtual ~MemoryXmlUnderspecifiedEntry() throw(){}; virtual const char* what() const throw() { @@ -190,6 +197,7 @@ namespace DFHack { public: MemoryXmlUnknownType(const char* _type) : type(_type) {} + virtual ~MemoryXmlUnknownType() throw(){}; std::string type;