mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
Fix some warnings
This commit is contained in:
parent
87273cf144
commit
5ec319244b
@ -23,8 +23,8 @@ static const char* mips_reg_decode(unsigned reg_num)
|
||||
static int mips_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *b_in, int len) {
|
||||
unsigned int opcode;
|
||||
ut8 b[4];
|
||||
// WIP char buf[10]; int reg;
|
||||
int family, optype, oplen = (anal->bits==16)?2:4;
|
||||
// WIP char buf[10]; int reg; int family;
|
||||
int optype, oplen = (anal->bits==16)?2:4;
|
||||
|
||||
if (op == NULL)
|
||||
return oplen;
|
||||
@ -148,7 +148,7 @@ static int mips_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *b_in, int len
|
||||
// eprintf ("%llx %d\n", addr, optype);
|
||||
break;
|
||||
}
|
||||
family = 'R';
|
||||
//family = 'R';
|
||||
} else
|
||||
if ((optype & 0x3e) == 2) {
|
||||
#if 0
|
||||
@ -194,7 +194,7 @@ static int mips_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *b_in, int len
|
||||
r_strbuf_setf (&op->esil, "lr=pc+4,pc=0x%08x", address);
|
||||
break;
|
||||
}
|
||||
family = 'J';
|
||||
//family = 'J';
|
||||
} else
|
||||
if ((optype & 0x10) == 0x1c) {
|
||||
#if 0
|
||||
@ -217,7 +217,7 @@ static int mips_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *b_in, int len
|
||||
int fd = (b[2]&7)+(b[3]>>6);
|
||||
#endif
|
||||
int fun = (b[3]&63);
|
||||
family = 'C';
|
||||
//family = 'C';
|
||||
switch (fun) {
|
||||
case 0: // mtc1
|
||||
break;
|
||||
@ -309,7 +309,7 @@ static int mips_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *b_in, int len
|
||||
case 57: // swc1
|
||||
break;
|
||||
}
|
||||
family = 'I';
|
||||
//family = 'I';
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
@ -103,6 +103,7 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) {
|
||||
if (INSOP(0).mem.base == X86_REG_RIP) {
|
||||
op->ptr += addr + insn->size;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (INSOP(1).type) {
|
||||
|
@ -254,6 +254,7 @@ int x86_udis86_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len)
|
||||
break;
|
||||
case UD_OP_IMM:
|
||||
op->ptr = getval (&u.operand[0]);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (u.operand[1].type) {
|
||||
@ -279,6 +280,7 @@ int x86_udis86_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len)
|
||||
break;
|
||||
case UD_OP_IMM:
|
||||
op->ptr = getval (&u.operand[0]);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user