From 8041d703be54609d69e10ecde8f885b1292c0c8c Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Sat, 4 Jun 2005 07:32:20 +0000 Subject: [PATCH] Fixed compiler warnings from g++-4 --- src/actions.hpp | 2 ++ src/exiv2.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/actions.hpp b/src/actions.hpp index 511eaf45..593122a5 100644 --- a/src/actions.hpp +++ b/src/actions.hpp @@ -73,6 +73,8 @@ namespace Action { public: //! Shortcut for an auto pointer. typedef std::auto_ptr AutoPtr; + //! Virtual destructor. + virtual ~Task() {} //! Virtual copy construction. AutoPtr clone() const; /*! diff --git a/src/exiv2.cpp b/src/exiv2.cpp index 65b2938d..98d0e3df 100644 --- a/src/exiv2.cpp +++ b/src/exiv2.cpp @@ -55,10 +55,10 @@ namespace { //! List of all command identifiers and corresponding strings static const CmdIdAndString cmdIdAndString[] = { - add, "add", - set, "set", - del, "del", - invalidCmdId, "invalidCmd" // End of list marker + { add, "add" }, + { set, "set" }, + { del, "del" }, + { invalidCmdId, "invalidCmd" } // End of list marker }; // Return a command Id for a command string