From 00f1679cebd5a747fc5443463c68892de2a2875f Mon Sep 17 00:00:00 2001 From: D G Turner Date: Fri, 15 Nov 2019 10:20:05 +0000 Subject: MADE: Fix Missing Default Switch Cases These are flagged by GCC if -Wswitch-default is enabled. --- engines/made/graphics.cpp | 4 ++++ engines/made/made.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/engines/made/graphics.cpp b/engines/made/graphics.cpp index 100f7b5c46..3061a6225d 100644 --- a/engines/made/graphics.cpp +++ b/engines/made/graphics.cpp @@ -159,6 +159,8 @@ void decompressImage(byte *source, Graphics::Surface &surface, uint16 cmdOffs, u } break; + default: + break; } drawDestOfs += 4; @@ -264,6 +266,8 @@ void decompressMovieImage(byte *source, Graphics::Surface &surface, uint16 cmdOf case 3: break; + default: + break; } if (cmd != 3) { diff --git a/engines/made/made.cpp b/engines/made/made.cpp index 947f08ec3b..13178b0d95 100644 --- a/engines/made/made.cpp +++ b/engines/made/made.cpp @@ -89,6 +89,8 @@ MadeEngine::MadeEngine(OSystem *syst, const MadeGameDescription *gameDesc) : Eng case GID_RTZ: // Return to Zork sets it itself via a script funtion break; + default: + break; } } -- cgit v1.2.3