Date: Mon, 7 Mar 2022 15:43:34 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: cb6f72256293 - main - ctf: Fix a -Wunused-but-set-variable warning Message-ID: <202203071543.227FhYO4048475@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=cb6f7225629301d3179f6e9f6d3be4d80f57a31f commit cb6f7225629301d3179f6e9f6d3be4d80f57a31f Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-03-07 15:34:11 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-03-07 15:43:19 +0000 ctf: Fix a -Wunused-but-set-variable warning MFC after: 1 month Sponsored by: The FreeBSD Foundation --- cddl/contrib/opensolaris/tools/ctf/cvt/output.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/output.c b/cddl/contrib/opensolaris/tools/ctf/cvt/output.c index 3385e4b2d09f..05f71231ac68 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/output.c +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/output.c @@ -467,7 +467,6 @@ write_file(Elf *src, const char *srcname, Elf *dst, const char *dstname, int keep_stabs = (flags & CTF_KEEP_STABS); int *secxlate; int srcidx, dstidx; - int curnmoff = 0; int changing = 0; int pad; int i; @@ -529,7 +528,6 @@ write_file(Elf *src, const char *srcname, Elf *dst, const char *dstname, secxlate[srcidx] = -1; } else { secxlate[srcidx] = dstidx++; - curnmoff += strlen(sname) + 1; } new_offset = (off_t)dehdr.e_phoff;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203071543.227FhYO4048475>