From d39b5198507512951dc38d45c79d3274f3c25102 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 27 Apr 2015 21:41:55 -0400 Subject: [PATCH] InputCommon/Core: Get rid of some virtual destructor warnings These classes have virtual methods, but no virtual destructor, which causes warnings on some compilers. --- Source/Core/Core/PowerPC/JitCommon/JitCache.h | 4 ++++ Source/Core/InputCommon/ControllerEmu.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.h b/Source/Core/Core/PowerPC/JitCommon/JitCache.h index 313048f382..9a3d868c88 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.h @@ -128,6 +128,10 @@ public: { } + virtual ~JitBaseBlockCache() + { + } + int AllocateBlock(u32 em_address); void FinalizeBlock(int block_num, bool block_link, const u8 *code_ptr); diff --git a/Source/Core/InputCommon/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu.h index e8dd22889c..e2e6f65d5d 100644 --- a/Source/Core/InputCommon/ControllerEmu.h +++ b/Source/Core/InputCommon/ControllerEmu.h @@ -85,7 +85,6 @@ public: class Setting { public: - Setting(const std::string& _name, const ControlState def_value , const unsigned int _low = 0, const unsigned int _high = 100) : name(_name) @@ -96,6 +95,10 @@ public: , is_virtual(false) , is_iterate(false) {} + virtual ~Setting() + { + } + const std::string name; ControlState value; const ControlState default_value;