ctf: Fix a -Wunused-but-set-variable warning

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2022-03-07 10:34:11 -05:00
parent d7412bcac8
commit cb6f722562

View File

@ -467,7 +467,6 @@ write_file(Elf *src, const char *srcname, Elf *dst, const char *dstname,
int keep_stabs = (flags & CTF_KEEP_STABS); int keep_stabs = (flags & CTF_KEEP_STABS);
int *secxlate; int *secxlate;
int srcidx, dstidx; int srcidx, dstidx;
int curnmoff = 0;
int changing = 0; int changing = 0;
int pad; int pad;
int i; int i;
@ -529,7 +528,6 @@ write_file(Elf *src, const char *srcname, Elf *dst, const char *dstname,
secxlate[srcidx] = -1; secxlate[srcidx] = -1;
} else { } else {
secxlate[srcidx] = dstidx++; secxlate[srcidx] = dstidx++;
curnmoff += strlen(sname) + 1;
} }
new_offset = (off_t)dehdr.e_phoff; new_offset = (off_t)dehdr.e_phoff;