mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-02 01:22:02 +00:00
Fix compiler warnings (#17245)
This commit is contained in:
parent
04074845e4
commit
cb5872c5cb
@ -1926,8 +1926,8 @@ R_API int r_core_anal_esil_fcn(RCore *core, ut64 at, ut64 from, int reftype, int
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int find_sym_flag(void *a1, void *a2) {
|
||||
RFlagItem *f = (RFlagItem *)a2;
|
||||
static int find_sym_flag(const void *a1, const void *a2) {
|
||||
const RFlagItem *f = (const RFlagItem *)a2;
|
||||
return f->space && !strcmp (f->space->name, R_FLAGS_FS_SYMBOLS)? 0: 1;
|
||||
}
|
||||
|
||||
|
@ -2580,7 +2580,7 @@ static char *find_ch_after_macro(char *ptr, char ch) {
|
||||
static int r_core_cmd_subst(RCore *core, char *cmd) {
|
||||
ut64 rep = strtoull (cmd, NULL, 10);
|
||||
int ret = 0, orep;
|
||||
char *cmt, *colon = NULL, *icmd = NULL;
|
||||
char *colon = NULL, *icmd = NULL;
|
||||
bool tmpseek = false;
|
||||
bool original_tmpseek = core->tmpseek;
|
||||
|
||||
@ -2626,7 +2626,6 @@ static int r_core_cmd_subst(RCore *core, char *cmd) {
|
||||
}
|
||||
if (*icmd && !strchr (icmd, '"')) {
|
||||
char *hash = icmd;
|
||||
cmt = NULL;
|
||||
for (hash = icmd + 1; *hash; hash++) {
|
||||
if (*hash == '\\') {
|
||||
hash++;
|
||||
@ -2641,7 +2640,6 @@ static int r_core_cmd_subst(RCore *core, char *cmd) {
|
||||
if (hash && *hash) {
|
||||
*hash = 0;
|
||||
r_str_trim_tail (icmd);
|
||||
cmt = hash + 1;
|
||||
}
|
||||
}
|
||||
if (*cmd != '"') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user