Fix two trivial warnings

This commit is contained in:
jvoisin 2015-01-13 03:03:48 +01:00
parent c1e04e22cb
commit 759e3b24b5
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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, '/');