diff options
| author | Paul Gilbert | 2014-08-13 22:54:04 -0400 | 
|---|---|---|
| committer | Paul Gilbert | 2014-08-13 22:54:04 -0400 | 
| commit | 79e743ba82b14dce808f3dcda6e173fa6f138137 (patch) | |
| tree | 43ed85065be8badd713f6c87ba6118a8643a0b7c | |
| parent | d6404a10adc4a1b6973894291ffbc6d87ac96071 (diff) | |
| download | scummvm-rg350-79e743ba82b14dce808f3dcda6e173fa6f138137.tar.gz scummvm-rg350-79e743ba82b14dce808f3dcda6e173fa6f138137.tar.bz2 scummvm-rg350-79e743ba82b14dce808f3dcda6e173fa6f138137.zip  | |
ACCESS: Fix more gcc compiler warnings
| -rw-r--r-- | engines/access/amazon/amazon_game.cpp | 2 | ||||
| -rw-r--r-- | engines/access/amazon/amazon_resources.cpp | 2 | ||||
| -rw-r--r-- | engines/access/asurface.cpp | 6 | ||||
| -rw-r--r-- | engines/access/decompress.h | 5 | ||||
| -rw-r--r-- | engines/access/module.mk | 8 | ||||
| -rw-r--r-- | engines/access/room.cpp | 2 | 
6 files changed, 10 insertions, 15 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp index d0a5b6eecc..49ae766325 100644 --- a/engines/access/amazon/amazon_game.cpp +++ b/engines/access/amazon/amazon_game.cpp @@ -140,7 +140,7 @@ void AmazonEngine::doTitle() {  	_sound->playSound(1);  	const int COUNTDOWN[6] = { 2, 0x80, 1, 0x7d, 0, 0x87 }; -	for (int _pCount = 0; _pCount < 3; ++_pCount) { +	for (_pCount = 0; _pCount < 3; ++_pCount) {  		_buffer2.copyFrom(_buffer1);  		int id = READ_LE_UINT16(COUNTDOWN + _pCount * 4);  		int xp = READ_LE_UINT16(COUNTDOWN + _pCount * 4 + 2); diff --git a/engines/access/amazon/amazon_resources.cpp b/engines/access/amazon/amazon_resources.cpp index 87f2966d8e..15cf190d4a 100644 --- a/engines/access/amazon/amazon_resources.cpp +++ b/engines/access/amazon/amazon_resources.cpp @@ -977,7 +977,7 @@ const byte LETTER[] = {  	0x0, 0x0, 0x0, 0x30, 0x0, 0x5, 0x0, 0xFF, 0xFF  }; -extern const byte *CHARTBL[] = { +const byte *CHARTBL[] = {  	ELAINE, LIB, FLASHBACK, ALLENDIE, OVERBOARD, PILOT2, TIKAGENT,  	BARTENDER, PILOT1, COOK, BEXPLODE, THORNICK, MAYA, CAPTAIN,  	ALLEN, ARCH, GUARD1, MCANOE, CAMPFIRE, COLONEL, SOLDIERS, diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp index 619c4499e9..6df8a4ae3d 100644 --- a/engines/access/asurface.cpp +++ b/engines/access/asurface.cpp @@ -57,9 +57,9 @@ SpriteResource::~SpriteResource() {  }  SpriteFrame::SpriteFrame(AccessEngine *vm, Common::MemoryReadStream &stream, int frameSize) { -	int w = stream.readUint16LE(); -	int h = stream.readUint16LE(); -	create(w, h, Graphics::PixelFormat::createFormatCLUT8()); +	int xSize = stream.readUint16LE(); +	int ySize = stream.readUint16LE(); +	create(xSize, ySize, Graphics::PixelFormat::createFormatCLUT8());  	// Empty surface  	byte *data = (byte *)getPixels(); diff --git a/engines/access/decompress.h b/engines/access/decompress.h index 522bfb2acf..400aee476c 100644 --- a/engines/access/decompress.h +++ b/engines/access/decompress.h @@ -1,9 +1,4 @@  /* ScummVM - Graphic Adventure Engine -* -* ScummVM is the legal property of its developers, whose names -* are too numerous to list here. Please refer to the COPYRIGHT -* file distributed with this source distribution. -/* ScummVM - Graphic Adventure Engine   *   * ScummVM is the legal property of its developers, whose names   * are too numerous to list here. Please refer to the COPYRIGHT diff --git a/engines/access/module.mk b/engines/access/module.mk index 7c089fefb3..6f906a9c21 100644 --- a/engines/access/module.mk +++ b/engines/access/module.mk @@ -17,10 +17,10 @@ MODULE_OBJS := \  	screen.o \  	scripts.o \  	sound.o \ -	amazon\amazon_game.o \ -	amazon\amazon_resources.o \ -	amazon\amazon_room.o \ -	amazon\amazon_scripts.o +	amazon/amazon_game.o \ +	amazon/amazon_resources.o \ +	amazon/amazon_room.o \ +	amazon/amazon_scripts.o  # This module can be built as a plugin  ifeq ($(ENABLE_ACCESS), DYNAMIC_PLUGIN) diff --git a/engines/access/room.cpp b/engines/access/room.cpp index 3e9e9e65aa..66231e60e1 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -445,6 +445,6 @@ RoomInfo::RoomInfo(const byte *data) {  		_sounds.push_back(fi);  	} -}; +}  } // End of namespace Access  | 
