From 4a2cbd94b69f2c0c3b58e46a97245981cd75965e Mon Sep 17 00:00:00 2001 From: D G Turner Date: Fri, 4 Oct 2019 04:27:42 +0100 Subject: COMMON: Add Missing Switch Default Case in ZLIB Class These are flagged by GCC if -Wswitch-default is enabled. --- common/zlib.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3