mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +00:00
ctf: Fix a -Wunused-but-set-variable warning
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
d7412bcac8
commit
cb6f722562
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue