mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-12 17:48:33 +00:00
Fix two trivial warnings
This commit is contained in:
parent
c1e04e22cb
commit
759e3b24b5
@ -2895,10 +2895,9 @@ print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb)
|
||||
case 32:
|
||||
if (isfloat)
|
||||
{
|
||||
unsigned char valbytes[4];
|
||||
#if HAVE_FLOAT
|
||||
unsigned char valbytes[4];
|
||||
double fvalue;
|
||||
#endif
|
||||
|
||||
/* Do this a byte at a time so we don't have to
|
||||
worry about the host's endianness. */
|
||||
@ -2907,7 +2906,6 @@ print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb)
|
||||
valbytes[2] = (value >> 16) & 0xff;
|
||||
valbytes[3] = (value >> 24) & 0xff;
|
||||
|
||||
#if HAVE_FLOAT
|
||||
floatformat_to_double
|
||||
(& floatformat_ieee_single_little, valbytes,
|
||||
& fvalue);
|
||||
|
@ -52,13 +52,12 @@ static ut64 baddr(RBinFile *arch) {
|
||||
|
||||
static char *flagname (const char *class, const char *method) {
|
||||
int s_len;
|
||||
char *p, *str, *s, *s_end;
|
||||
char *p, *str, *s;
|
||||
if (!class || !method)
|
||||
return NULL;
|
||||
s_len = strlen (class) + strlen (method)+10;
|
||||
s = malloc (s_len);
|
||||
if (!s) return NULL;
|
||||
s_end = s + s_len;
|
||||
str = s;
|
||||
p = (char*)r_str_lchr (class, '$');
|
||||
if (!p) p = (char *)r_str_lchr (class, '/');
|
||||
|
Loading…
x
Reference in New Issue
Block a user