[Scummvm-git-logs] scummvm master -> 4a2cbd94b69f2c0c3b58e46a97245981cd75965e

digitall 547637+digitall at users.noreply.github.com
Fri Oct 4 05:30:40 CEST 2019


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
cee1b56f3a COMMON: Add Missing Default Switch Cases in DCT Class
4a2cbd94b6 COMMON: Add Missing Switch Default Case in ZLIB Class


Commit: cee1b56f3a245a20694de4948270f8726db42a79
    https://github.com/scummvm/scummvm/commit/cee1b56f3a245a20694de4948270f8726db42a79
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-04T04:27:03+01:00

Commit Message:
COMMON: Add Missing Default Switch Cases in DCT Class

These are flagged by GCC if -Wswitch-default is enabled.

Changed paths:
    common/dct.cpp


diff --git a/common/dct.cpp b/common/dct.cpp
index 374eee0..390c52a 100644
--- a/common/dct.cpp
+++ b/common/dct.cpp
@@ -62,6 +62,8 @@ void DCT::calc(float *data) {
 	case DST_I:
 		calcDSTI(data);
 		break;
+	default:
+		break;
 	}
 }
 


Commit: 4a2cbd94b69f2c0c3b58e46a97245981cd75965e
    https://github.com/scummvm/scummvm/commit/4a2cbd94b69f2c0c3b58e46a97245981cd75965e
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-04T04:27:42+01:00

Commit Message:
COMMON: Add Missing Switch Default Case in ZLIB Class

These are flagged by GCC if -Wswitch-default is enabled.

Changed paths:
    common/zlib.cpp


diff --git a/common/zlib.cpp b/common/zlib.cpp
index e4a3d47..35a1034 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;





More information about the Scummvm-git-logs mailing list