diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index c3b4e315ce..1601d08e42 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2035,6 +2035,11 @@ public: return true; } + // Give it a virtual dtor just to suppress gcc warnings about a class with + // virtual methods but non-virtual dtor -- even if this is completely safe + // here as we never use the objects of this class polymorphically. + virtual ~ValidationTraverserBase() { } + protected: // Called for each child, validator is guaranteed to be non-NULL. virtual bool OnDo(wxValidator* validator) = 0;