Skip to content

Commit

Permalink
build: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zamaudio authored and radare committed May 8, 2016
1 parent 5995ef7 commit 5e1ad58
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libr/anal/anal.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ R_API bool r_anal_set_reg_profile(RAnal *anal) {
}
free (p);
}
return false;
return ret;
}

R_API bool r_anal_set_fcnsign(RAnal *anal, const char *name) {
Expand Down
2 changes: 0 additions & 2 deletions libr/asm/asm.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,6 @@ static Ase findAssembler(RAsm *a, const char *kw) {
}
R_API int r_asm_assemble(RAsm *a, RAsmOp *op, const char *buf) {
int ret = 0;
RAsmPlugin *h;
RListIter *iter;
char *b = strdup (buf);
if (a->ifilter)
r_parse_parse (a->ifilter, buf, b);
Expand Down
4 changes: 0 additions & 4 deletions libr/bin/p/bin_p9.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ static RList* entries(RBinFile *arch) {
static RList* sections(RBinFile *arch) {
RList *ret = NULL;
RBinSection *ptr = NULL;
int big_endian = 0;
ut64 textsize, datasize, symssize, spszsize, pcszsize;
if (!arch->o->info) return NULL;
big_endian = arch->o->info->big_endian;

if (!(ret = r_list_new ()))
return NULL;
Expand Down Expand Up @@ -186,11 +184,9 @@ static RBinInfo* info(RBinFile *arch) {

static int size(RBinFile *arch) {
ut64 text, data, syms, spsz;
int big_endian;
if (!arch->o->info)
arch->o->info = info (arch);
if (!arch->o->info) return 0;
big_endian = arch->o->info->big_endian;
// TODO: reuse section list
text = r_mem_get_num (arch->buf->buf + 4, 4);
data = r_mem_get_num (arch->buf->buf + 8, 4);
Expand Down
4 changes: 2 additions & 2 deletions libr/core/vmenus.c
Original file line number Diff line number Diff line change
Expand Up @@ -2277,12 +2277,12 @@ R_API void r_core_visual_define (RCore *core) {
}
{
int funsize = 0;
int depth = r_config_get_i (core->config, "anal.depth");
//int depth = r_config_get_i (core->config, "anal.depth");
if (core->print->cur_enabled) {
if (core->print->ocur != -1) {
funsize = 1+ R_ABS (core->print->cur - core->print->ocur);
}
depth = 0;
//depth = 0;
}
r_cons_break (NULL, NULL);
r_core_cmd0 (core, "af"); // required for thumb autodetection
Expand Down

0 comments on commit 5e1ad58

Please sign in to comment.