From: notaz Date: Tue, 7 Jun 2011 09:34:50 +0000 (+0300) Subject: drc: fix warning in my code X-Git-Tag: r9~89 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2e3bd42a14cb253ec5cc3e04dd86a2f83e13615;p=pcsx_rearmed.git drc: fix warning in my code --- diff --git a/libpcsxcore/new_dynarec/assem_arm.c b/libpcsxcore/new_dynarec/assem_arm.c index 41d2e71e..539ee4ed 100644 --- a/libpcsxcore/new_dynarec/assem_arm.c +++ b/libpcsxcore/new_dynarec/assem_arm.c @@ -845,7 +845,8 @@ u_int rd_rn_imm_shift(u_int rd, u_int rn, u_int imm, u_int shift) } u_int genimm(u_int imm,u_int *encoded) { - if(imm==0) {*encoded=0;return 1;} + *encoded=0; + if(imm==0) return 1; int i=32; while(i>0) { diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index d0cdc5c4..553d5bbf 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -3744,7 +3744,7 @@ void c2ls_assemble(int i,struct regstat *i_regs) int ar; int offset; int memtarget=0,c=0; - int jaddr,jaddr2=0,jaddr3,type; + int jaddr2=0,jaddr3,type; int agr=AGEN1+(i&1); u_int hr,reglist=0; u_int copr=(source[i]>>16)&0x1f; @@ -7899,7 +7899,7 @@ int new_recompile_block(int addr) #ifdef PCSX if(!sp_in_mirror&&(signed int)(psxRegs.GPR.n.sp&0xffe00000)>0x80200000&& 0x10000<=psxRegs.GPR.n.sp&&(psxRegs.GPR.n.sp&~0xe0e00000)