Fix -Wdelete-non-virtual-dtor warnings

delete called on 'idSIMDProcessor' that is abstract but has
non-virtual destructor
This commit is contained in:
dhewg 2011-12-13 17:14:07 +01:00
parent a3cd1cf54b
commit 10e9ef2a52
2 changed files with 2 additions and 1 deletions

View file

@ -96,6 +96,7 @@ typedef enum {
class idSIMDProcessor {
public:
idSIMDProcessor( void ) { cpuid = CPUID_NONE; }
virtual ~idSIMDProcessor() { };
int cpuid;

View file

@ -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 );