svn commit: r343672 - head/libexec/rtld-elf/i386

Eric van Gyzen vangyzen at FreeBSD.org
Fri Feb 1 23:17:01 UTC 2019


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)) {


More information about the svn-src-head mailing list