Some compiler does not know that error function never returns.
Signed-off-by: Chih-Hung Hsieh <chh@google.com>
+2015-09-09 Chih-Hung Hsieh <chh@google.com>
+
+ * readelf.c (print_debug_exception_table): Initialize variable before
+ it is used, because compiler does not know that error never returns.
+ (dump_arhive_index): Likewise.
+
2015-09-04 Chih-Hung Hsieh <chh@google.com>
* elflint.c (check_group): Replace %Z length modifier with %z.
dsize = 8;
break;
default:
+ dsize = 0;
error (1, 0, gettext ("invalid TType encoding"));
}
{
as_off = s->as_off;
- Elf *subelf;
+ Elf *subelf = NULL;
if (unlikely (elf_rand (elf, as_off) == 0)
|| unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf))
== NULL))