From c0b5bfe726228e1242a7e5a0da83374e47472b7f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 2 Jan 2020 23:43:53 -0500 Subject: [PATCH] Ensure no possible return without value. --- Storage/Disk/Encodings/MFM/Encoder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Storage/Disk/Encodings/MFM/Encoder.cpp b/Storage/Disk/Encodings/MFM/Encoder.cpp index 0c8bc8c9e..642db4202 100644 --- a/Storage/Disk/Encodings/MFM/Encoder.cpp +++ b/Storage/Disk/Encodings/MFM/Encoder.cpp @@ -71,6 +71,7 @@ class MFMEncoder: public Encoder { case SurfaceItem::Data: return 2; // Just a single encoded byte. default: assert(false); } + return 0; // Should be impossible to reach in debug builds. } private: