From 2ef6d4327cf9c0b9f4c781123b0eeb4d34e35001 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 13 Jan 2019 20:37:50 -0500 Subject: [PATCH] Resolves further build warnings. --- Components/1770/1770.cpp | 1 - Machines/Utility/Typer.hpp | 4 ++-- Storage/Disk/Encodings/MFM/Encoder.hpp | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Components/1770/1770.cpp b/Components/1770/1770.cpp index c030cb4df..5504d69c2 100644 --- a/Components/1770/1770.cpp +++ b/Components/1770/1770.cpp @@ -189,7 +189,6 @@ void WD1770::posit_event(int new_event_type) { interesting_event_mask_ &= ~new_event_type; } - Status new_status; BEGIN_SECTION() // Wait for a new command, branch to the appropriate handler. diff --git a/Machines/Utility/Typer.hpp b/Machines/Utility/Typer.hpp index e93403523..93e02d0f3 100644 --- a/Machines/Utility/Typer.hpp +++ b/Machines/Utility/Typer.hpp @@ -23,11 +23,11 @@ namespace Utility { */ class CharacterMapper { public: + virtual ~CharacterMapper() {} + /// @returns The EndSequence-terminated sequence of keys that would cause @c character to be typed. virtual uint16_t *sequence_for_character(char character) = 0; - virtual CharacterMaper() {} - protected: typedef uint16_t KeySequence[16]; diff --git a/Storage/Disk/Encodings/MFM/Encoder.hpp b/Storage/Disk/Encodings/MFM/Encoder.hpp index 643cbc610..225a1bb4f 100644 --- a/Storage/Disk/Encodings/MFM/Encoder.hpp +++ b/Storage/Disk/Encodings/MFM/Encoder.hpp @@ -45,6 +45,7 @@ std::shared_ptr GetFMTrackWithSectors(const std::vector &target); + virtual ~Encoder() {} virtual void add_byte(uint8_t input) = 0; virtual void add_index_address_mark() = 0; virtual void add_ID_address_mark() = 0;