소스 검색

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.
Brad King 16 년 전
부모
커밋
222abaad5b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Source/cmFileCommand.cxx

+ 1 - 0
Source/cmFileCommand.cxx

@@ -922,6 +922,7 @@ struct cmFileCopier
     Doing(DoingNone)
     {
     }
+  virtual ~cmFileCopier() {}
 
   bool Run(std::vector<std::string> const& args);
 protected: