From 10e9ef2a52c8c4903ca52f318a7474c74a21ae63 Mon Sep 17 00:00:00 2001 From: dhewg Date: Tue, 13 Dec 2011 17:14:07 +0100 Subject: [PATCH] Fix -Wdelete-non-virtual-dtor warnings delete called on 'idSIMDProcessor' that is abstract but has non-virtual destructor --- neo/idlib/math/Simd.h | 1 + neo/ui/GameBustOutWindow.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/neo/idlib/math/Simd.h b/neo/idlib/math/Simd.h index 10699f9b..2039229f 100644 --- a/neo/idlib/math/Simd.h +++ b/neo/idlib/math/Simd.h @@ -96,6 +96,7 @@ typedef enum { class idSIMDProcessor { public: idSIMDProcessor( void ) { cpuid = CPUID_NONE; } + virtual ~idSIMDProcessor() { }; int cpuid; diff --git a/neo/ui/GameBustOutWindow.h b/neo/ui/GameBustOutWindow.h index 592e270c..a62283bc 100644 --- a/neo/ui/GameBustOutWindow.h +++ b/neo/ui/GameBustOutWindow.h @@ -95,7 +95,7 @@ public: public: BOBrick(); BOBrick( BOEntity *_ent, float _x, float _y, float _width, float _height ); - ~BOBrick(); + virtual ~BOBrick(); virtual void WriteToSaveGame( idFile *savefile ); virtual void ReadFromSaveGame( idFile *savefile, idGameBustOutWindow *game );