projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d01bef
)
gcov: Remove dead variable.
author
Martin Liska
<mliska@suse.cz>
Wed, 3 Nov 2021 13:30:01 +0000
(14:30 +0100)
committer
Martin Liska
<mliska@suse.cz>
Wed, 3 Nov 2021 13:30:01 +0000
(14:30 +0100)
gcc/ChangeLog:
* gcov.c (read_line): Remove dead variable.
gcc/gcov.c
patch
|
blob
|
history
diff --git
a/gcc/gcov.c
b/gcc/gcov.c
index
34f53ac
..
8c10f69
100644
(file)
--- a/
gcc/gcov.c
+++ b/
gcc/gcov.c
@@
-2912,7
+2912,6
@@
read_line (FILE *file)
static char *string;
static size_t string_len;
size_t pos = 0;
- char *ptr;
if (!string_len)
{
@@
-2920,7
+2919,7
@@
read_line (FILE *file)
string = XNEWVEC (char, string_len);
}
- while (
(ptr = fgets (string + pos, string_len - pos, file)
))
+ while (
fgets (string + pos, string_len - pos, file
))
{
size_t len = strlen (string + pos);