Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2019 23:17:00 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343672 - head/libexec/rtld-elf/i386
Message-ID:  <201902012317.x11NH0vS063179@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902012317.x11NH0vS063179>