From 12385dcc6f553be381ca9c3b7cb131caf1dad584 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Thu, 30 Nov 2017 23:15:40 +0000 Subject: [PATCH] More clang warnings corrected. Signed-off-by: Adrian Conlon --- inc/IntelProcessor.h | 1 + inc/Processor.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/IntelProcessor.h b/inc/IntelProcessor.h index 2378f1f..50b8b5c 100644 --- a/inc/IntelProcessor.h +++ b/inc/IntelProcessor.h @@ -61,6 +61,7 @@ namespace EightBit { protected: IntelProcessor(Bus& bus); + virtual ~IntelProcessor() = default; template static void adjustSign(uint8_t& f, uint8_t value) { setFlag(f, T::SF, value & T::SF); diff --git a/inc/Processor.h b/inc/Processor.h index 4fb9895..46a8d13 100644 --- a/inc/Processor.h +++ b/inc/Processor.h @@ -27,7 +27,7 @@ namespace EightBit { Bit13 = Bit12 << 1, Bit14 = Bit13 << 1, Bit15 = Bit14 << 1, - Bit16 = Bit15 << 1, + Bit16 = Bit15 << 1 }; enum Masks { @@ -46,7 +46,7 @@ namespace EightBit { Mask13 = Bit13 - 1, Mask14 = Bit14 - 1, Mask15 = Bit15 - 1, - Mask16 = Bit16 - 1, + Mask16 = Bit16 - 1 }; static int highNibble(int value) { return value >> 4; } @@ -90,6 +90,7 @@ namespace EightBit { static void clearFlag(uint8_t& f, int flag, bool condition) { condition ? clearFlag(f, flag) : setFlag(f, flag); } Processor(Bus& memory); + virtual ~Processor() = default; virtual uint8_t fetchByte(); virtual void fetchWord(register16_t& output);