mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Fixed some silly warnings
svn-id: r40165
This commit is contained in:
parent
7f20f3bb3e
commit
f177c7142c
@ -458,7 +458,7 @@ void Parse::printVarIndex() {
|
||||
|
||||
int Parse::cmpHelper(byte *operPtr, int32 *valPtr) {
|
||||
byte var_C = operPtr[-3];
|
||||
int cmpTemp;
|
||||
int cmpTemp = 0;
|
||||
if (var_C == OP_LOAD_IMM_INT16) {
|
||||
cmpTemp = (int)valPtr[-3] - (int)valPtr[-1];
|
||||
} else if (var_C == OP_LOAD_IMM_STR) {
|
||||
|
@ -797,8 +797,6 @@ int16 Parse_v2::parseExpr(byte stopToken, byte *arg_2) {
|
||||
if ((operStack[brackStart] >= OP_OR) || (operStack[brackStart] == OP_BEGIN_EXPR))
|
||||
brackStart++;
|
||||
|
||||
int cmpTemp;
|
||||
|
||||
switch (operPtr[-2]) {
|
||||
case OP_ADD:
|
||||
if (operStack[brackStart] == OP_LOAD_IMM_INT16) {
|
||||
@ -913,7 +911,9 @@ int16 Parse_v2::parseExpr(byte stopToken, byte *arg_2) {
|
||||
valPtr -= 2;
|
||||
break;
|
||||
|
||||
case OP_NEQ:
|
||||
case OP_NEQ: {
|
||||
int cmpTemp = 0;
|
||||
|
||||
if (operPtr[-3] == OP_LOAD_IMM_INT16) {
|
||||
cmpTemp = valPtr[-3] - valPtr[-1];
|
||||
} else if (operPtr[-3] == OP_LOAD_IMM_STR) {
|
||||
@ -930,6 +930,7 @@ int16 Parse_v2::parseExpr(byte stopToken, byte *arg_2) {
|
||||
operPtr -= 2;
|
||||
valPtr -= 2;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
var_1A = true;
|
||||
|
@ -111,7 +111,7 @@ int IntMapper::lookupKey(int key) const {
|
||||
void IntMapper::saveLoadWithSerializer(Common::Serializer &s) {
|
||||
s.syncAsSint32LE(base_value);
|
||||
if (s.isLoading()) {
|
||||
uint32 key, idx;
|
||||
uint32 key = 0, idx = 0;
|
||||
clear();
|
||||
while (true) {
|
||||
s.syncAsSint32LE(key);
|
||||
|
Loading…
Reference in New Issue
Block a user