git: cb6f72256293 - main - ctf: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 15:43:34 UTC
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;