From 222abaad5bb7ecb9bf3341f15d7a08eaaf44d906 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 29 Apr 2009 13:33:05 -0400 Subject: [PATCH] COMP: Fix non-virtual destructor warning This gives cmFileCopier a virtual destructor since it has virtual methods. While we never actually delete through a base pointer (or dynamically at all), the compiler doesn't know and warns anyway. --- Source/cmFileCommand.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index cceea97ff..e45cd0751 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -922,6 +922,7 @@ struct cmFileCopier Doing(DoingNone) { } + virtual ~cmFileCopier() {} bool Run(std::vector const& args); protected: