aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorMartin Gerhardy2018-09-13 21:33:15 +0200
committerDavid Turner2018-09-13 20:55:49 +0100
commitbe71f5b990b3c7e41f1677429e12e4189ccfbe5f (patch)
treeaae59b9a569eb372386a0978ec742d2341ceb1e7 /engines/lastexpress
parent0cb6b30f67bada2626cbffb8dc0c83c80f3eda63 (diff)
downloadscummvm-rg350-be71f5b990b3c7e41f1677429e12e4189ccfbe5f.tar.gz
scummvm-rg350-be71f5b990b3c7e41f1677429e12e4189ccfbe5f.tar.bz2
scummvm-rg350-be71f5b990b3c7e41f1677429e12e4189ccfbe5f.zip
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: ^~~~
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/entities/alexei.cpp2
-rw-r--r--engines/lastexpress/entities/august.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/engines/lastexpress/entities/alexei.cpp b/engines/lastexpress/entities/alexei.cpp
index 45dd03aa32..b90ae41fb2 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 cdcc85cca1..20f54ed50d 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: