aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2019-10-04 04:27:42 +0100
committerD G Turner2019-10-04 04:27:42 +0100
commit4a2cbd94b69f2c0c3b58e46a97245981cd75965e (patch)
tree547ca6c9296a3addcd14aa97cc9ca3386368f3a9
parentcee1b56f3a245a20694de4948270f8726db42a79 (diff)
downloadscummvm-rg350-4a2cbd94b69f2c0c3b58e46a97245981cd75965e.tar.gz
scummvm-rg350-4a2cbd94b69f2c0c3b58e46a97245981cd75965e.tar.bz2
scummvm-rg350-4a2cbd94b69f2c0c3b58e46a97245981cd75965e.zip
COMMON: Add Missing Switch Default Case in ZLIB Class
These are flagged by GCC if -Wswitch-default is enabled.
-rw-r--r--common/zlib.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/zlib.cpp b/common/zlib.cpp
index e4a3d47e35..35a103499b 100644
--- a/common/zlib.cpp
+++ b/common/zlib.cpp
@@ -321,6 +321,8 @@ public:
bool seek(int32 offset, int whence = SEEK_SET) {
int32 newPos = 0;
switch (whence) {
+ default:
+ // fallthrough intended
case SEEK_SET:
newPos = offset;
break;