From: Alan Modra Date: Mon, 20 Mar 2023 05:35:27 +0000 (+1030) Subject: libctf: unused variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d664a6aad2da8e051d210da2e2b851c1e51faab8;p=binutils-gdb.git libctf: unused variable * ctf-archive.c (arc_mmap_writeout): Delete unused variable. --- diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c index 54c49b3edbb..a8f76e4f42f 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;