git: d80faf878a44 - stable/13 - ctf: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Apr 2022 00:31:05 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d80faf878a4473c6136f06b774d9176ec9449479 commit d80faf878a4473c6136f06b774d9176ec9449479 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-03-07 15:34:11 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-04-07 00:30:45 +0000 ctf: Fix a -Wunused-but-set-variable warning Sponsored by: The FreeBSD Foundation (cherry picked from commit cb6f7225629301d3179f6e9f6d3be4d80f57a31f) --- 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;