public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] libctf: unused variable
@ 2023-03-20 10:33 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-03-20 10:33 UTC (permalink / raw)
To: bfd-cvs, gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d664a6aad2da8e051d210da2e2b851c1e51faab8
commit d664a6aad2da8e051d210da2e2b851c1e51faab8
Author: Alan Modra <amodra@gmail.com>
Date: Mon Mar 20 16:05:27 2023 +1030
libctf: unused variable
* ctf-archive.c (arc_mmap_writeout): Delete unused variable.
Diff:
---
libctf/ctf-archive.c | 2 --
1 file changed, 2 deletions(-)
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-20 10:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 10:33 [binutils-gdb] libctf: unused variable Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).