Date: Thu, 15 Sep 2016 17:23:15 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r305838 - stable/11/contrib/elftoolchain/elfcopy Message-ID: <201609151723.u8FHNFeM081220@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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] == '$') {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609151723.u8FHNFeM081220>