[Scummvm-git-logs] scummvm master -> 9ce2ba27589b9341510427452a01a4217d70f55f

digitall 547637+digitall at users.noreply.github.com
Thu Oct 17 19:51:31 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:
9ce2ba2758 CRYOMNI3D: Fix Missing Default Switch Cases


Commit: 9ce2ba27589b9341510427452a01a4217d70f55f
    https://github.com/scummvm/scummvm/commit/9ce2ba27589b9341510427452a01a4217d70f55f
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-17T18:47:32+01:00

Commit Message:
CRYOMNI3D: Fix Missing Default Switch Cases

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

Changed paths:
    engines/cryomni3d/versailles/logic.cpp
    engines/cryomni3d/video/hnm_decoder.cpp


diff --git a/engines/cryomni3d/versailles/logic.cpp b/engines/cryomni3d/versailles/logic.cpp
index 952489c..248226c 100644
--- a/engines/cryomni3d/versailles/logic.cpp
+++ b/engines/cryomni3d/versailles/logic.cpp
@@ -2683,6 +2683,7 @@ IMG_CB(88003) {
 		FixedImgCallback callback = nullptr;
 		switch (_gameVariables[GameVariables::kBombState]) {
 		case 1:
+		default:
 			callback = &CryOmni3DEngine_Versailles::img_88003b;
 			break;
 		case 2:
@@ -4308,6 +4309,8 @@ void CryOmni3DEngine_Versailles::filterEventLevel5UpdatePlaceStates() {
 			// Ladder is on the scaffolding
 			setPlaceState(16, 5);
 			break;
+		default:
+			break;
 		}
 	} else {
 		// Curtain is opened
@@ -4324,6 +4327,8 @@ void CryOmni3DEngine_Versailles::filterEventLevel5UpdatePlaceStates() {
 			// Ladder is on the scaffolding
 			setPlaceState(16, 6);
 			break;
+		default:
+			break;
 		}
 	}
 }
diff --git a/engines/cryomni3d/video/hnm_decoder.cpp b/engines/cryomni3d/video/hnm_decoder.cpp
index db59782..bd548e4 100644
--- a/engines/cryomni3d/video/hnm_decoder.cpp
+++ b/engines/cryomni3d/video/hnm_decoder.cpp
@@ -286,6 +286,7 @@ void HNMDecoder::HNM4VideoTrack::decodeInterframe(Common::SeekableReadStream *st
 				currentPos += width;
 				break;
 			case 3:
+			default:
 				// End of picture
 				eop = true;
 				break;





More information about the Scummvm-git-logs mailing list