[Scummvm-git-logs] scummvm master -> 7b275b454c1c143d97d238086ab3797f76576872

digitall 547637+digitall at users.noreply.github.com
Sun Dec 1 13:32:17 UTC 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:
7b275b454c LASTEXPRESS: Fix Missing Default Switch Cases


Commit: 7b275b454c1c143d97d238086ab3797f76576872
    https://github.com/scummvm/scummvm/commit/7b275b454c1c143d97d238086ab3797f76576872
Author: D G Turner (digitall at scummvm.org)
Date: 2019-12-01T13:28:49Z

Commit Message:
LASTEXPRESS: Fix Missing Default Switch Cases

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

Changed paths:
    engines/lastexpress/entities/mertens.cpp
    engines/lastexpress/entities/milos.cpp


diff --git a/engines/lastexpress/entities/mertens.cpp b/engines/lastexpress/entities/mertens.cpp
index db90009..f8af822 100644
--- a/engines/lastexpress/entities/mertens.cpp
+++ b/engines/lastexpress/entities/mertens.cpp
@@ -524,6 +524,9 @@ IMPLEMENT_FUNCTION_I(12, Mertens, bonsoir, EntityIndex)
 				case 2:
 					getSound()->playSound(kEntityMertens, "CON1110H");
 					break;
+
+				default:
+					break;
 				}
 			}
 		}
diff --git a/engines/lastexpress/entities/milos.cpp b/engines/lastexpress/entities/milos.cpp
index a9e0d80..564f611 100644
--- a/engines/lastexpress/entities/milos.cpp
+++ b/engines/lastexpress/entities/milos.cpp
@@ -152,6 +152,9 @@ IMPLEMENT_FUNCTION_II(10, Milos, enterCompartmentDialog, CarIndex, EntityPositio
 			case 2:
 				getSound()->playSound(kEntityPlayer, "CAT1014B");
 				break;
+
+			default:
+				break;
 			}
 		} else {
 			getSound()->excuseMeCath();




More information about the Scummvm-git-logs mailing list