[Scummvm-git-logs] scummvm master -> 047545cc1b4dda6bd993970dad06263f0dd00ab8

digitall 547637+digitall at users.noreply.github.com
Tue Mar 17 13:37:03 UTC 2020


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:
9712ab0f3d MOHAWK: MYST: Fix Missing Default Switch Case
047545cc1b KEYMAPPER: Fix Missing Default Switch Case


Commit: 9712ab0f3d2a61fa521e728fa3e44a1d0efce1c0
    https://github.com/scummvm/scummvm/commit/9712ab0f3d2a61fa521e728fa3e44a1d0efce1c0
Author: D G Turner (digitall at scummvm.org)
Date: 2020-03-17T13:32:16Z

Commit Message:
MOHAWK: MYST: Fix Missing Default Switch Case

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

Changed paths:
    engines/mohawk/myst.cpp


diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp
index 54426a0cd5..9432972556 100644
--- a/engines/mohawk/myst.cpp
+++ b/engines/mohawk/myst.cpp
@@ -610,6 +610,8 @@ void MohawkEngine_Myst::doFrame() {
 					runSaveDialog();
 				}
 				break;
+			default:
+				break;
 			}
 			break;
 		case Common::EVENT_CUSTOM_ENGINE_ACTION_END:


Commit: 047545cc1b4dda6bd993970dad06263f0dd00ab8
    https://github.com/scummvm/scummvm/commit/047545cc1b4dda6bd993970dad06263f0dd00ab8
Author: D G Turner (digitall at scummvm.org)
Date: 2020-03-17T13:33:12Z

Commit Message:
KEYMAPPER: Fix Missing Default Switch Case

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

Changed paths:
    backends/keymapper/virtual-mouse.cpp


diff --git a/backends/keymapper/virtual-mouse.cpp b/backends/keymapper/virtual-mouse.cpp
index 09f528700d..552fdbd1ee 100644
--- a/backends/keymapper/virtual-mouse.cpp
+++ b/backends/keymapper/virtual-mouse.cpp
@@ -141,6 +141,8 @@ bool VirtualMouse::notifyEvent(const Event &event) {
 	case kCustomActionVirtualMouseSlow:
 		_slowModifier = 0.9f * (1.f - event.joystick.position / (float)JOYAXIS_MAX) + 0.1f;
 		return true;
+	default:
+		break;
 	}
 
 	return false;




More information about the Scummvm-git-logs mailing list