mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
GLK: TADS2: Fix uninitialized variable warnings
This commit is contained in:
parent
8f9fcec16c
commit
0d0dbf601e
@ -2448,7 +2448,7 @@ static int outformatlen_stream(out_stream_info *stream,
|
||||
|| !scumm_stricmp(tagbuf, "em")
|
||||
|| !scumm_stricmp(tagbuf, "strong"))
|
||||
{
|
||||
int attr;
|
||||
int attr = 0;
|
||||
|
||||
/* choose the attribute flag */
|
||||
switch (tagbuf[0])
|
||||
|
@ -1096,15 +1096,19 @@ void runexe(runcxdef *ctx, uchar *p0, objnum self, objnum target,
|
||||
runsdef val; /* stack element (for pushing) */
|
||||
runsdef val2; /* another one (for popping in two-op instructions) */
|
||||
uint ofs; /* offset in code of current execution */
|
||||
prpnum prop; /* property number, when needed */
|
||||
objnum obj; /* object number, when needed */
|
||||
prpnum prop = 0; /* property number, when needed */
|
||||
objnum obj = 0; /* object number, when needed */
|
||||
runsdef *noreg rstsp; /* sp to reset to on DISCARD instructions */
|
||||
uchar *lstp; /* list pointer */
|
||||
uchar *lstp = nullptr; /* list pointer */
|
||||
int nargc; /* argument count of called function */
|
||||
runsdef *valp;
|
||||
runsdef *stkval;
|
||||
int i;
|
||||
int i = 0;
|
||||
int brkchk;
|
||||
runsdef val3;
|
||||
int asityp;
|
||||
int asiext = 0;
|
||||
int lclnum = 0;
|
||||
|
||||
#ifndef DBG_OFF
|
||||
int err;
|
||||
@ -1954,11 +1958,6 @@ resume_from_error:
|
||||
default:
|
||||
if ((opc & OPCASI_MASK) == OPCASI_MASK)
|
||||
{
|
||||
runsdef val3;
|
||||
int asityp;
|
||||
int asiext;
|
||||
int lclnum;
|
||||
|
||||
valp = &val;
|
||||
stkval = &val;
|
||||
|
||||
|
@ -57,7 +57,11 @@ struct runsdef {
|
||||
objnum runsvobj; /* object value */
|
||||
prpnum runsvprp; /* property number value */
|
||||
uchar *runsvstr; /* string/list value */
|
||||
} runsv;
|
||||
} runsv;
|
||||
|
||||
runsdef() : runstyp(0) {
|
||||
runsv.runsvnum = 0;
|
||||
}
|
||||
};
|
||||
|
||||
/* external function control structure */
|
||||
|
Loading…
Reference in New Issue
Block a user