From 36d3dbba664cc7d01699e7998869f61493c57fec Mon Sep 17 00:00:00 2001 From: sean Date: Sat, 21 Jul 2012 00:56:13 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20the=20compile=20time=20warning=20of=20w?= =?UTF-8?q?arning:=20deleting=20object=20of=20polymorphic=20class=20type?= =?UTF-8?q?=20=E2=80=98FPHost6=E2=80=99=20which=20has=20non-virtual=20dest?= =?UTF-8?q?ructor=20might=20cause=20undefined=20behaviour=20by=20making=20?= =?UTF-8?q?the=20destructor=20virtual.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FPEngine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FPEngine.h b/FPEngine.h index d9523ec5e..7fc5d2bcf 100644 --- a/FPEngine.h +++ b/FPEngine.h @@ -389,7 +389,7 @@ class FPHost { struct timeval begin_time; FPHost(); - ~FPHost(); + virtual ~FPHost(); virtual bool done() = 0; virtual int schedule() = 0; virtual int callback(const u8 *pkt, size_t pkt_len, const struct timeval *tv) = 0;