From 673b7213cb32622f5aeb0bd8ad7063a4230ae4e3 Mon Sep 17 00:00:00 2001 From: Ryan Libby Date: Sat, 19 Dec 2020 04:09:21 +0000 Subject: [PATCH] MFC r343672 (by vangyzen): 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 67b9828887f..b4bd09d677b 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)) { -- 2.45.0