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

digitall 547637+digitall at users.noreply.github.com
Fri Nov 15 00:51:45 CET 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:
4aaff742fc LAB: Fix Missing Default Switch Cases


Commit: 4aaff742fc83c461f07bb205746258455935a3a2
    https://github.com/scummvm/scummvm/commit/4aaff742fc83c461f07bb205746258455935a3a2
Author: D G Turner (digitall at scummvm.org)
Date: 2019-11-14T23:48:05Z

Commit Message:
LAB: Fix Missing Default Switch Cases

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

Changed paths:
    engines/lab/engine.cpp
    engines/lab/processroom.cpp


diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index 793a333..e8e275d 100644
--- a/engines/lab/engine.cpp
+++ b/engines/lab/engine.cpp
@@ -843,6 +843,9 @@ void LabEngine::processMainButton(uint16 &curInv, uint16 &lastInv, uint16 &oldDi
 
 		_interface->mayShowCrumbIndicator();
 		break;
+
+	default:
+		break;
 	}
 
 	_graphics->screenUpdate();
@@ -960,6 +963,9 @@ void LabEngine::processAltButton(uint16 &curInv, uint16 &lastInv, uint16 buttonI
 			}
 		}
 		break;
+
+	default:
+		break;
 	}
 
 	_graphics->screenUpdate();
@@ -1024,6 +1030,10 @@ void LabEngine::performAction(uint16 actionMode, Common::Point curPos, uint16 &c
 			else if (curPos.y < (_utils->vgaScaleY(149) + _utils->svgaCord(2)))
 				drawStaticMessage(kTextNothing);
 		}
+		break;
+
+	default:
+		break;
 	}
 }
 
diff --git a/engines/lab/processroom.cpp b/engines/lab/processroom.cpp
index 58b7e25..f608682 100644
--- a/engines/lab/processroom.cpp
+++ b/engines/lab/processroom.cpp
@@ -469,6 +469,9 @@ void LabEngine::doActions(const ActionList &actionList) {
 			}
 
 			break;
+
+		default:
+			break;
 		}
 	}
 





More information about the Scummvm-git-logs mailing list