Devices: Make the destructor virtual on the CopyEnginChannel object.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 26 Jan 2009 04:26:53 +0000 (20:26 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 26 Jan 2009 04:26:53 +0000 (20:26 -0800)
This fixes a compile warning which becomes an error.

src/dev/copy_engine.hh

index 0224261d9c9107e2ee4e31b03ef7af61ab25b3ce..475c0a5bf8e7a91f7d20f3af492f09b8b6417feb 100644 (file)
@@ -81,7 +81,7 @@ class CopyEngine : public PciDev
         Event *drainEvent;
       public:
         CopyEngineChannel(CopyEngine *_ce, int cid);
-        ~CopyEngineChannel();
+        virtual ~CopyEngineChannel();
         void init();
 
         std::string name() { assert(ce); return ce->name() + csprintf("-chan%d", channelId); }