[Scummvm-cvs-logs] scummvm master -> c15b858765e9ad606c8e84bdf48744957983a49a

Strangerke arnaud.boutonne at gmail.com
Wed Apr 20 22:22:55 CEST 2011


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:
c15b858765 HUGO: Silent several warnings reported by littleboy


Commit: c15b858765e9ad606c8e84bdf48744957983a49a
    https://github.com/scummvm/scummvm/commit/c15b858765e9ad606c8e84bdf48744957983a49a
Author: strangerke (arnaud.boutonne at gmail.com)
Date: 2011-04-20T13:22:01-07:00

Commit Message:
HUGO: Silent several warnings reported by littleboy

Changed paths:
    engines/hugo/mouse.cpp
    engines/hugo/parser.cpp



diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp
index 1b2dd58..e8926b1 100644
--- a/engines/hugo/mouse.cpp
+++ b/engines/hugo/mouse.cpp
@@ -363,6 +363,7 @@ void MouseHandler::readHotspot(Common::ReadStream &in, hotspot_t &hotspot) {
 void MouseHandler::loadHotspots(Common::ReadStream &in) {
 	hotspot_t *wrkHotspots = 0;
 	hotspot_t tmp;
+	memset(&tmp, 0, sizeof(tmp));
 	for (int varnt = 0; varnt < _vm->_numVariant; varnt++) {
 		int numRows = in.readUint16BE();
 		if (varnt == _vm->_gameVariant)
diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp
index feee4cb..9cfdd1a 100644
--- a/engines/hugo/parser.cpp
+++ b/engines/hugo/parser.cpp
@@ -87,6 +87,7 @@ void Parser::readCmd(Common::ReadStream &in, cmd &curCmd) {
  */
 void Parser::loadCmdList(Common::ReadStream &in) {
 	cmd tmpCmd;
+	memset(&tmpCmd, 0, sizeof(tmpCmd));
 	for (int varnt = 0; varnt < _vm->_numVariant; varnt++) {
 		uint16 numElem = in.readUint16BE();
 		if (varnt == _vm->_gameVariant) {
@@ -119,6 +120,7 @@ void Parser::readBG(Common::ReadStream &in, background_t &curBG) {
  */
 void Parser::loadBackgroundObjects(Common::ReadStream &in) {
 	background_t tmpBG;
+	memset(&tmpBG, 0, sizeof(tmpBG));
 
 	for (int varnt = 0; varnt < _vm->_numVariant; varnt++) {
 		uint16 numElem = in.readUint16BE();
@@ -145,6 +147,7 @@ void Parser::loadBackgroundObjects(Common::ReadStream &in) {
 void Parser::loadCatchallList(Common::ReadStream &in) {
 	background_t *wrkCatchallList = 0;
 	background_t tmpBG;
+	memset(&tmpBG, 0, sizeof(tmpBG));
 
 	for (int varnt = 0; varnt < _vm->_numVariant; varnt++) {
 		uint16 numElem = in.readUint16BE();






More information about the Scummvm-git-logs mailing list