svn commit: r305838 - stable/11/contrib/elftoolchain/elfcopy

Ed Maste emaste at FreeBSD.org
Thu Sep 15 17:23:16 UTC 2016


Author: emaste
Date: Thu Sep 15 17:23:14 2016
New Revision: 305838
URL: https://svnweb.freebsd.org/changeset/base/305838

Log:
  MFC r304151: elfcopy: silence GCC 5.3 unitialized variable warning
  
  Although it's a false positive there is little cost to initializing it
  always.

Modified:
  stable/11/contrib/elftoolchain/elfcopy/ascii.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/elftoolchain/elfcopy/ascii.c
==============================================================================
--- stable/11/contrib/elftoolchain/elfcopy/ascii.c	Thu Sep 15 17:22:35 2016	(r305837)
+++ stable/11/contrib/elftoolchain/elfcopy/ascii.c	Thu Sep 15 17:23:14 2016	(r305838)
@@ -251,6 +251,7 @@ create_elf_from_srec(struct elfcopy *ecp
 	sec_index = 1;
 	sec_addr = entry = 0;
 	while (fgets(line, _LINE_BUFSZ, ifp) != NULL) {
+		sz = 0; /* Silence GCC 5.3 unintialized variable warning */
 		if (line[0] == '\r' || line[0] == '\n')
 			continue;
 		if (line[0] == '$' && line[1] == '$') {


More information about the svn-src-stable mailing list