diff options
author | Alan Modra <amodra@gmail.com> | 2023-03-20 16:05:27 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-03-20 16:06:40 +1030 |
commit | d664a6aad2da8e051d210da2e2b851c1e51faab8 (patch) | |
tree | dbbfd36026a00424150d4d174fe11ebaeb689dbf /libctf | |
parent | de8e70596896cc9f85498a9981196ebc4465172e (diff) | |
download | gdb-d664a6aad2da8e051d210da2e2b851c1e51faab8.zip gdb-d664a6aad2da8e051d210da2e2b851c1e51faab8.tar.gz gdb-d664a6aad2da8e051d210da2e2b851c1e51faab8.tar.bz2 |
libctf: unused variable
* ctf-archive.c (arc_mmap_writeout): Delete unused variable.
Diffstat (limited to 'libctf')
-rw-r--r-- | libctf/ctf-archive.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c index 54c49b3..a8f76e4 100644 --- a/libctf/ctf-archive.c +++ b/libctf/ctf-archive.c @@ -1249,7 +1249,6 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, const char **errmsg) { ssize_t len; - size_t acc = 0; char *data = (char *) header; ssize_t count = headersz; @@ -1272,7 +1271,6 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, if (len == EINTR) continue; - acc += len; if (len == 0) /* EOF. */ break; |