aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Templier2010-10-26 12:49:32 +0000
committerJulien Templier2010-10-26 12:49:32 +0000
commit5323be5f8465fb1a8d461aed1e03718bb93e5c49 (patch)
tree8a3887f94128933748e72b357d38eaa1a315789b
parent8622ee1ef1fcfc71515440dd9737d7c6a11d77be (diff)
downloadscummvm-rg350-5323be5f8465fb1a8d461aed1e03718bb93e5c49.tar.gz
scummvm-rg350-5323be5f8465fb1a8d461aed1e03718bb93e5c49.tar.bz2
scummvm-rg350-5323be5f8465fb1a8d461aed1e03718bb93e5c49.zip
LASTEXPRESS: Fix GCC warnings
svn-id: r53850
-rw-r--r--engines/lastexpress/entities/entity.h4
-rw-r--r--engines/lastexpress/game/entities.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/lastexpress/entities/entity.h b/engines/lastexpress/entities/entity.h
index 246b2096d9..3e12df8612 100644
--- a/engines/lastexpress/entities/entity.h
+++ b/engines/lastexpress/entities/entity.h
@@ -318,8 +318,8 @@ public:
return Common::String::printf("SSS: %s %s %s\n", seq1, seq2, seq3);
}
- void update(uint32 index) {
- error("EntityParametersSSS::update: cannot update this type of parameters", index);
+ void update(uint32) {
+ error("EntityParametersSSS::update: cannot update this type of parameters");
}
void saveLoadWithSerializer(Common::Serializer &s) {
diff --git a/engines/lastexpress/game/entities.cpp b/engines/lastexpress/game/entities.cpp
index 57f9f0e050..feb9057161 100644
--- a/engines/lastexpress/game/entities.cpp
+++ b/engines/lastexpress/game/entities.cpp
@@ -251,15 +251,15 @@ void Entities::saveLoadWithSerializer(Common::Serializer &s) {
}
void Entities::savePositions(Common::Serializer &s) {
- for (uint i = 0; i < _positionsCount; i++)
+ for (uint i = 0; i < (uint)_positionsCount; i++)
s.syncAsUint32LE(_positions[i]);
}
void Entities::saveCompartments(Common::Serializer &s) {
- for (uint i = 0; i < _compartmentsCount; i++)
+ for (uint i = 0; i < (uint)_compartmentsCount; i++)
s.syncAsUint32LE(_compartments[i]);
- for (uint i = 0; i < _compartmentsCount; i++)
+ for (uint i = 0; i < (uint)_compartmentsCount; i++)
s.syncAsUint32LE(_compartments1[i]);
}