[Scummvm-git-logs] scummvm master -> be71f5b990b3c7e41f1677429e12e4189ccfbe5f
digitall
dgturner at iee.org
Thu Sep 13 21:55:53 CEST 2018
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:
be71f5b990 LASTEXPRESS: fixed warnings with gcc 8.2
Commit: be71f5b990b3c7e41f1677429e12e4189ccfbe5f
https://github.com/scummvm/scummvm/commit/be71f5b990b3c7e41f1677429e12e4189ccfbe5f
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2018-09-13T20:55:49+01:00
Commit Message:
LASTEXPRESS: fixed warnings with gcc 8.2
engines/lastexpress/entities/alexei.cpp: In member function ‘void LastExpress::Alexei::standingAtWindow(const LastExpress::SavePoint&)’:
engines/lastexpress/entities/alexei.cpp:772:49: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C++ engines/lastexpress/entities/chapters.o
engines/lastexpress/entities/august.cpp: In member function ‘void LastExpress::August::function21(const LastExpress::SavePoint&)’:
engines/lastexpress/entities/august.cpp:672:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
switch(params->param5) {
^~~~~~
engines/lastexpress/entities/august.cpp:694:3: note: here
case 9:
^~~~
Changed paths:
engines/lastexpress/entities/alexei.cpp
engines/lastexpress/entities/august.cpp
diff --git a/engines/lastexpress/entities/alexei.cpp b/engines/lastexpress/entities/alexei.cpp
index 45dd03a..b90ae41 100644
--- a/engines/lastexpress/entities/alexei.cpp
+++ b/engines/lastexpress/entities/alexei.cpp
@@ -769,7 +769,7 @@ IMPLEMENT_FUNCTION(22, Alexei, standingAtWindow)
if (getState()->time > kTime1138500) {
params->param3 = kTimeInvalid;
} else {
- if (!getEntities()->isInSalon(kEntityPlayer) && !getEntities()->isInRestaurant(kEntityPlayer) || !params->param3)
+ if ((!getEntities()->isInSalon(kEntityPlayer) && !getEntities()->isInRestaurant(kEntityPlayer)) || !params->param3)
params->param3 = (uint)getState()->time;
if (params->param3 >= getState()->time)
diff --git a/engines/lastexpress/entities/august.cpp b/engines/lastexpress/entities/august.cpp
index cdcc85c..20f54ed 100644
--- a/engines/lastexpress/entities/august.cpp
+++ b/engines/lastexpress/entities/august.cpp
@@ -689,8 +689,7 @@ label_continue:
setup_playSound(getProgress().eventMetAugust ? "AUG1128F" : "AUG1128H");
return;
}
- // Fallback to next case
-
+ // fall through
case 9:
case 10:
case 11:
More information about the Scummvm-git-logs
mailing list