aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/new_dynarec
diff options
context:
space:
mode:
authornotaz2011-06-07 12:36:41 +0300
committernotaz2011-06-07 12:48:07 +0300
commit5194fb95c9650bcb97aa811c08cb3b051e2a9561 (patch)
treed97b80e2dfeb8e53063513589207889ba584305a /libpcsxcore/new_dynarec
parentc2e3bd42a14cb253ec5cc3e04dd86a2f83e13615 (diff)
downloadpcsx_rearmed-5194fb95c9650bcb97aa811c08cb3b051e2a9561.tar.gz
pcsx_rearmed-5194fb95c9650bcb97aa811c08cb3b051e2a9561.tar.bz2
pcsx_rearmed-5194fb95c9650bcb97aa811c08cb3b051e2a9561.zip
drc: init vars that gcc thinks can be used uninitialized, just in case
Diffstat (limited to 'libpcsxcore/new_dynarec')
-rw-r--r--libpcsxcore/new_dynarec/new_dynarec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c
index 553d5bb..032d698 100644
--- a/libpcsxcore/new_dynarec/new_dynarec.c
+++ b/libpcsxcore/new_dynarec/new_dynarec.c
@@ -4114,7 +4114,7 @@ static void loop_preload(signed char pre[],signed char entry[])
void address_generation(int i,struct regstat *i_regs,signed char entry[])
{
if(itype[i]==LOAD||itype[i]==LOADLR||itype[i]==STORE||itype[i]==STORELR||itype[i]==C1LS||itype[i]==C2LS) {
- int ra;
+ int ra=-1;
int agr=AGEN1+(i&1);
int mgr=MGEN1+(i&1);
if(itype[i]==LOAD) {
@@ -4932,7 +4932,7 @@ void do_ccstub(int n)
emit_loadreg(rs2[i],s2l);
#endif
int hr=0;
- int addr,alt,ntaddr;
+ int addr=-1,alt=-1,ntaddr=-1;
while(hr<HOST_REGS)
{
if(hr!=EXCLUDE_REG && hr!=HOST_CCREG &&
@@ -8624,7 +8624,7 @@ int new_recompile_block(int addr)
current.wasconst=0;
int ds=0;
int cc=0;
- int hr;
+ int hr=-1;
#ifndef FORCE32
provisional_32bit();