STARK: fixed compilation warnings

This commit is contained in:
Pawel Kolodziejski 2015-02-21 06:49:18 +01:00 committed by Bastien Bouclet
parent 5993f6ba68
commit 6d598c7eaf
3 changed files with 9 additions and 9 deletions

View file

@ -180,7 +180,7 @@ static const ADGameDescription gameDescriptions[] = {
AD_TABLE_END_MARKER
};
/*
// File based fallback game description
static const ADGameDescription fallbackDescription = {
"tlj", "Unknown", {
@ -197,7 +197,7 @@ static const ADGameDescription fallbackDescription = {
static const ADFileBasedFallback fileBasedFallback[] = {
{&fallbackDescription, {"x.xarc", "chapters.ini", "w_world.ini", NULL}},
{NULL, {NULL}}
};
};*/
class StarkMetaEngine : public AdvancedMetaEngine {
public:

View file

@ -45,10 +45,10 @@ TextureSetReader::~TextureSetReader() {
Gfx::TextureSet *TextureSetReader::read(Common::ReadStream *stream) {
Gfx::TextureSet *textureSet = new Gfx::TextureSet();
uint32 id = stream->readUint32LE();
/*uint32 id = */stream->readUint32LE();
uint32 format = stream->readUint32LE();
uint32 u1 = stream->readUint32LE();
uint32 u2 = stream->readUint32LE();
/*uint32 u1 = */stream->readUint32LE();
/*uint32 u2 = */stream->readUint32LE();
uint32 len = stream->readUint32LE();
for (uint32 i = 0; i < len; ++i) {
@ -65,12 +65,12 @@ void TextureSetReader::readChunk(Common::ReadStream *stream, uint32 format, Gfx:
}
uint32 type = stream->readUint32LE();
uint32 u3 = stream->readUint32LE();
/*uint32 u3 = */stream->readUint32LE();
uint32 size = stream->readUint32LE();
if (format == 2)
uint u4 = stream->readUint32LE();
/*uint u4 = */stream->readUint32LE();
if (type == 0x02faf082) {
// Palette
@ -91,7 +91,7 @@ void TextureSetReader::readChunk(Common::ReadStream *stream, uint32 format, Gfx:
stream->read(name, nameLength);
Common::String nameStr = Common::String(name, nameLength);
delete[] name;
byte u = stream->readByte();
/*byte u = */stream->readByte();
Gfx::Texture *texture = _driver->createTexture();

View file

@ -182,7 +182,7 @@ void Object::print(uint depth) {
description += Common::String::format(" %s - %s - (sub=%d, order=%d)", type.c_str(), _name.c_str(), _subType, _index);
// Print the resource description
debug(description.c_str());
debug("%s ", description.c_str());
// Print the resource data
printData();