From 9406baeac9dc1afa67cb0f4fc4fa64eacc24d80b Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 14 Oct 2019 14:25:16 +0100 Subject: AGOS: Fix Missing Default Switch Cases These are flagged by GCC if -Wswitch-default is enabled. --- engines/agos/debug.cpp | 3 +++ engines/agos/rooms.cpp | 2 ++ engines/agos/script_pn.cpp | 4 ++++ 3 files changed, 9 insertions(+) (limited to 'engines') diff --git a/engines/agos/debug.cpp b/engines/agos/debug.cpp index ad5bfb56f4..2d7e3a0a3c 100644 --- a/engines/agos/debug.cpp +++ b/engines/agos/debug.cpp @@ -157,6 +157,9 @@ const byte *AGOSEngine::dumpOpcode(const byte *p) { debugN("NULL_STRING "); } break; + + default: + break; } } } diff --git a/engines/agos/rooms.cpp b/engines/agos/rooms.cpp index d1d6f2b99d..6ffaf51da5 100644 --- a/engines/agos/rooms.cpp +++ b/engines/agos/rooms.cpp @@ -44,6 +44,8 @@ uint16 AGOSEngine::getBackExit(int n) { return 5; case 5: return 4; + default: + break; } return 0; diff --git a/engines/agos/script_pn.cpp b/engines/agos/script_pn.cpp index 653a162904..508681ce92 100644 --- a/engines/agos/script_pn.cpp +++ b/engines/agos/script_pn.cpp @@ -391,6 +391,8 @@ void AGOSEngine_PN::opn_opcode31() { // NOTE: Is this case ever used? error("opn_opcode31: case 2"); break; + default: + break; } if (slot == -1) { @@ -431,6 +433,8 @@ void AGOSEngine_PN::opn_opcode32() { // NOTE: Is this case ever used? error("opn_opcode32: case 2"); break; + default: + break; } a = saveFile(bf); -- cgit v1.2.3