[Scummvm-git-logs] scummvm master -> 9406baeac9dc1afa67cb0f4fc4fa64eacc24d80b
digitall
547637+digitall at users.noreply.github.com
Mon Oct 14 15:29:07 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9406baeac9 AGOS: Fix Missing Default Switch Cases
Commit: 9406baeac9dc1afa67cb0f4fc4fa64eacc24d80b
https://github.com/scummvm/scummvm/commit/9406baeac9dc1afa67cb0f4fc4fa64eacc24d80b
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-14T14:25:16+01:00
Commit Message:
AGOS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Changed paths:
engines/agos/debug.cpp
engines/agos/rooms.cpp
engines/agos/script_pn.cpp
diff --git a/engines/agos/debug.cpp b/engines/agos/debug.cpp
index ad5bfb5..2d7e3a0 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 d1d6f2b..6ffaf51 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 653a162..508681c 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);
More information about the Scummvm-git-logs
mailing list