git: e3d976742cd7 - releng/13.1 - ctf: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Apr 2022 16:39:33 UTC
The branch releng/13.1 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e3d976742cd7c65553ead400452d2e3c9c2cbd1d commit e3d976742cd7c65553ead400452d2e3c9c2cbd1d Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-03-07 15:34:11 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-04-18 16:38:50 +0000 ctf: Fix a -Wunused-but-set-variable warning Approved by: re (gjb) Sponsored by: The FreeBSD Foundation (cherry picked from commit cb6f7225629301d3179f6e9f6d3be4d80f57a31f) (cherry picked from commit d80faf878a4473c6136f06b774d9176ec9449479) --- 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;