From ebac719bcd267dc7e8017253458985d4e3794942 Mon Sep 17 00:00:00 2001 From: NicJA Date: Wed, 4 Feb 2015 22:17:11 +0000 Subject: [PATCH] delint/fix to build with paranoia flags git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50014 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- tools/elf2hunk/elf2hunk.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/elf2hunk/elf2hunk.c b/tools/elf2hunk/elf2hunk.c index 1a623998b6..960c6b395c 100644 --- a/tools/elf2hunk/elf2hunk.c +++ b/tools/elf2hunk/elf2hunk.c @@ -495,8 +495,8 @@ static int relocate struct symbol sym; ULONG offset; ULONG shindex; - ULONG hunk; - ULONG value; + ULONG hunk = 0; + ULONG value = 0; const char *symname; rel_fixup(rel); @@ -535,7 +535,7 @@ static int relocate case SHN_UNDEF: if (ELF_R_TYPE(rel->info) != 0) { - bug("[ELF2HUNK] SHN_UNDEF symbol '%s', type %d unsupported\n", symname, ELF_R_TYPE(rel->info)); + bug("[ELF2HUNK] SHN_UNDEF symbol '%s', type %d unsupported\n", symname, (int)ELF_R_TYPE(rel->info)); set_error(EINVAL); return 0; } @@ -713,11 +713,11 @@ int elf2hunk(int file, int hunk_fd, const char *libname, int flags) struct hunkheader **hh; struct elfheader eh; struct sheader *sh; - char *strtab; + char *strtab = NULL; int symtab_shndx = -1; int err; ULONG i; - BOOL exec_hunk_seen = FALSE; + BOOL exec_hunk_seen __attribute__ ((unused)) = FALSE; ULONG int_shnum; int hunks = 0; -- 2.11.4.GIT