Fix some gcc warnings

This commit is contained in:
jvoisin 2015-01-13 02:01:44 +01:00
parent d904da5364
commit 4fd6ce62d5
5 changed files with 6 additions and 5 deletions

View file

@ -308,7 +308,7 @@ static int haschr(const RBinFile* arch, ut16 dllCharacteristic) {
}
static RBinInfo* info(RBinFile *arch) {
SDebugInfo di = {0};
SDebugInfo di = {{0}};
int len = 0;
char *str;
RBinInfo *ret = R_NEW0 (RBinInfo);

View file

@ -215,7 +215,7 @@ R_API RCons *r_cons_new () {
R_API RCons *r_cons_free () {
if (I.line) {
r_line_free (I.line);
r_line_free ();
I.line = NULL;
}
if (I.buffer) {

View file

@ -162,13 +162,13 @@ R_API int r_cons_grepbuf(char *buf, int len) {
cons->grep.json = 0;
if (cons->grep.less) {
cons->grep.less = 0;
r_cons_less (cons->buffer);
r_cons_less_str (cons->buffer);
}
return 3;
}
if (cons->grep.less) {
cons->grep.less = 0;
r_cons_less (buf);
r_cons_less_str (buf);
buf[0] = 0;
cons->buffer_len = 0;
if (cons->buffer)

View file

@ -2045,7 +2045,7 @@ static void cmd_anal_trace(RCore *core, const char *input) {
break;
case '-':
r_debug_trace_free (core->dbg);
core->dbg->trace = r_debug_trace_new (core->dbg);
core->dbg->trace = r_debug_trace_new ();
break;
case ' ':
{

View file

@ -391,6 +391,7 @@ R_API char *r_bin_demangle_cxx(const char *str);
R_API char *r_bin_demangle_swift(const char *s);
R_API char *r_bin_demangle_objc(RBinFile *binfile, const char *sym);
R_API int r_bin_lang_objc(RBinFile *binfile);
R_API int r_bin_lang_swift(RBinFile *binfile);
R_API int r_bin_lang_cxx(RBinFile *binfile);
R_API RList* r_bin_get_entries(RBin *bin);