1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-14 04:18:11 +01:00

mips: fix compiler warnings

This fixes a number of compiler warnings I got when compiling for mips32el with
gcc 5.3.0.
This commit is contained in:
Rene Nielsen 2016-08-12 07:13:35 +00:00 committed by Dave Watson
parent 92ec098c6e
commit cfd4306cc7
5 changed files with 8 additions and 8 deletions

View file

@ -352,9 +352,9 @@ dwarf_read_encoded_pointer_inlined (unw_addr_space_t as, unw_accessors_t *a,
uint16_t uval16;
uint32_t uval32;
uint64_t uval64;
int16_t sval16;
int32_t sval32;
int64_t sval64;
int16_t sval16 = 0;
int32_t sval32 = 0;
int64_t sval64 = 0;
int ret;
/* DW_EH_PE_omit and DW_EH_PE_aligned don't follow the normal

View file

@ -238,7 +238,7 @@ HIDDEN int
dwarf_eval_expr (struct dwarf_cursor *c, unw_word_t *addr, unw_word_t len,
unw_word_t *valp, int *is_register)
{
unw_word_t operand1 = 0, operand2 = 0, tmp1, tmp2, tmp3, end_addr;
unw_word_t operand1 = 0, operand2 = 0, tmp1, tmp2 = 0, tmp3, end_addr;
uint8_t opcode, operands_signature, u8;
unw_addr_space_t as;
unw_accessors_t *a;

View file

@ -240,7 +240,7 @@ dwarf_extract_proc_info_from_fde (unw_addr_space_t as, unw_accessors_t *a,
if (u32val != 0xffffffff)
{
int32_t cie_offset;
int32_t cie_offset = 0;
/* In some configurations, an FDE with a 0 length indicates the
end of the FDE-table. */
@ -270,7 +270,7 @@ dwarf_extract_proc_info_from_fde (unw_addr_space_t as, unw_accessors_t *a,
}
else
{
int64_t cie_offset;
int64_t cie_offset = 0;
/* the FDE is in the 64-bit DWARF format */

View file

@ -857,7 +857,7 @@ remote_lookup (unw_addr_space_t as,
unw_accessors_t *a = unw_get_accessors (as);
unsigned long lo, hi, mid;
unw_word_t e_addr = 0;
int32_t start;
int32_t start = 0;
int ret;
/* do a binary search for right entry: */

View file

@ -130,7 +130,7 @@ run_cfi_program (struct dwarf_cursor *c, dwarf_state_record_t *sr,
case DW_CFA_MIPS_advance_loc8:
#ifdef UNW_TARGET_MIPS
{
uint64_t u64;
uint64_t u64 = 0;
if ((ret = dwarf_readu64 (as, a, addr, &u64, arg)) < 0)
goto fail;