From a5899f7d3ade7dad5ead6bb5ee4958cdf64e6481 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 17 Mar 2019 09:54:18 +0000 Subject: [PATCH] Little warning cleanups (#13398) --- libr/anal/op.c | 1 - libr/bin/p/bin_mach064.c | 2 +- libr/util/ctype.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libr/anal/op.c b/libr/anal/op.c index 6a8b3a4d78..fddf338e31 100644 --- a/libr/anal/op.c +++ b/libr/anal/op.c @@ -766,7 +766,6 @@ R_API int r_anal_op_reg_delta(RAnal *anal, ut64 addr, const char *name) { ut8 buf[32]; anal->iob.read_at (anal->iob.io, addr, buf, sizeof (buf)); RAnalOp op = { 0 }; - ut64 ret = UT64_MAX; if (r_anal_op (anal, &op, addr, buf, sizeof (buf), R_ANAL_OP_MASK_ALL) > 0) { if (op.dst && op.dst->reg && op.dst->reg->name && (!name || !strcmp (op.dst->reg->name, name))) { if (op.src[0]) { diff --git a/libr/bin/p/bin_mach064.c b/libr/bin/p/bin_mach064.c index 6291c4ee47..875537ef6c 100644 --- a/libr/bin/p/bin_mach064.c +++ b/libr/bin/p/bin_mach064.c @@ -19,7 +19,7 @@ static bool check_bytes(const ut8 *buf, ut64 length) { int i; for (i = 0; i < 4; i++) { const ut8 *needle = (const ut8 *) features[i]; - if (!r_mem_mem (buf, 4096, needle, strlen (needle))) { + if (!r_mem_mem (buf, 4096, needle, strlen ((char *)needle))) { break; } } diff --git a/libr/util/ctype.c b/libr/util/ctype.c index a617ae0ffa..60582b4fcf 100644 --- a/libr/util/ctype.c +++ b/libr/util/ctype.c @@ -554,7 +554,7 @@ R_API R_OWN char *r_type_func_guess(Sdb *TDB, R_NONNULL char *func_name) { int offset = 0; char *str = func_name; char *result = NULL; - char *first, *last; + char *first; r_return_val_if_fail (TDB, false); r_return_val_if_fail (func_name, false);