From ac818ca6441d08bd857740110662fe49e872a2d8 Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Fri, 1 Feb 2019 23:16:59 +0000 Subject: [PATCH] rtld: pacify -Wmaybe-uninitialized from gcc6 Sponsored by: Dell EMC Isilon --- libexec/rtld-elf/i386/reloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libexec/rtld-elf/i386/reloc.c b/libexec/rtld-elf/i386/reloc.c index 84bbaf5f2f8..ef6e805aeeb 100644 --- a/libexec/rtld-elf/i386/reloc.c +++ b/libexec/rtld-elf/i386/reloc.c @@ -146,6 +146,10 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags, } else cache = NULL; + /* Appease some compilers. */ + symval = 0; + def = NULL; + rellim = (const Elf_Rel *)((const char *)obj->rel + obj->relsize); for (rel = obj->rel; rel < rellim; rel++) { switch (ELF_R_TYPE(rel->r_info)) {