Fix warnings

This commit is contained in:
pancake 2023-08-07 10:40:20 +02:00
parent 85ddf748b4
commit d91310ffc2
3 changed files with 9 additions and 10 deletions

View File

@ -127,11 +127,9 @@ static RBinAddr* binsym(RBinFile *bf, int sym) {
#if R2_590
static bool sections_vec(RBinFile *bf) {
ELFOBJ *eo = (bf && bf->o)? bf->o->bin_obj : NULL;
if (eo) {
return Elf_(load_sections) (bf, eo) != NULL;
}
return false;
r_return_val_if_fail (bf && bf->o, false);
ELFOBJ *eo = bf->o->bin_obj
return eo? Elf_(load_sections) (bf, eo) != NULL: false;
}
#else
@ -366,7 +364,7 @@ static RList* entries(RBinFile *bf) {
// fill bf->o->symbols_vec (RBinSymbol) with the processed contents of eo->g_symbols_vec (RBinElfSymbol)
// thats kind of dup because rbinelfsymbol shouldnt exist, rbinsymbol should be enough, rvec makes this easily typed
static bool symbols_vec(RBinFile *bf) {
r_return_val_if_fail (bf && bf->o && bf->o->bin_obj, NULL);
r_return_val_if_fail (bf && bf->o && bf->o->bin_obj, false);
ELFOBJ *eo = bf->o->bin_obj;
// traverse symbols

View File

@ -79,7 +79,7 @@ static void render_sixel(PrintfCallback cb_printf, const ut8 *c, const ut8 *d) {
b = (d[3] * 100 / 255);
cb_printf ("#1;2;%d;%d;%d", r, g, b); // fg is color
// cb_printf ("#%d!6%c", 1, 0x3f); // 6x6 pixel block
cb_printf ("#%d~~~~~~", 1, 0x3f); // 6x6 pixel block
cb_printf ("#%d~~~~~~", 1); // 6x6 pixel block
}
static void render_256(PrintfCallback cb_printf, const ut8 *c, const ut8 *d) {

View File

@ -116,10 +116,11 @@ if host_machine.system() == 'windows'
endif
platform_inc = include_directories(platform_inc)
if get_option('static_runtime')
if cc.get_id() == 'msvc'
if cc.get_id() == 'msvc'
add_project_arguments('/Zc:preprocessor')
if get_option('static_runtime')
add_project_arguments('/MT', language: 'c')
add_project_arguments('/Zc:preprocessor')
endif
endif