projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de8e705
)
libctf: unused variable
author
Alan Modra
<amodra@gmail.com>
Mon, 20 Mar 2023 05:35:27 +0000
(16:05 +1030)
committer
Alan Modra
<amodra@gmail.com>
Mon, 20 Mar 2023 05:36:40 +0000
(16:06 +1030)
* ctf-archive.c (arc_mmap_writeout): Delete unused variable.
libctf/ctf-archive.c
patch
|
blob
|
history
diff --git
a/libctf/ctf-archive.c
b/libctf/ctf-archive.c
index 54c49b3edbb238c1dd03b6dd949d985eb189990f..a8f76e4f42f1d6cdc83a59e48ac20e527c90519f 100644
(file)
--- 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;