From 78054e977b71cf984c9434d3ad53ba329cd8386b Mon Sep 17 00:00:00 2001 From: leper Date: Thu, 4 May 2017 03:22:19 +0200 Subject: [PATCH] Add virtual destructor to TaskDispatcher. This removes a GCC warning about that missing while virtual functions exist. --- src/nvtt/nvtt.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nvtt/nvtt.h b/src/nvtt/nvtt.h index a0752e3..b695490 100644 --- a/src/nvtt/nvtt.h +++ b/src/nvtt/nvtt.h @@ -380,6 +380,8 @@ namespace nvtt // (New in NVTT 2.1) struct TaskDispatcher { + virtual ~TaskDispatcher() {} + virtual void dispatch(Task * task, void * context, int count) = 0; };