mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
rtld: pacify -Wmaybe-uninitialized from gcc6
Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
50b06886a7
commit
ac818ca644
1 changed files with 4 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue