Author: vangyzen
Date: Fri Feb  1 23:16:59 2019
New Revision: 343672
URL: https://svnweb.freebsd.org/changeset/base/343672

Log:
  rtld: pacify -Wmaybe-uninitialized from gcc6
  
  Sponsored by: Dell EMC Isilon

Modified:
  head/libexec/rtld-elf/i386/reloc.c

Modified: head/libexec/rtld-elf/i386/reloc.c
==============================================================================
--- head/libexec/rtld-elf/i386/reloc.c  Fri Feb  1 23:15:54 2019        
(r343671)
+++ head/libexec/rtld-elf/i386/reloc.c  Fri Feb  1 23:16:59 2019        
(r343672)
@@ -146,6 +146,10 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int
        } 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)) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to