gcov: Remove dead variable.

gcc/ChangeLog:

	* gcov.c (read_line): Remove dead variable.
This commit is contained in:
Martin Liska 2021-11-03 14:30:01 +01:00
parent 2d01bef2f2
commit 4096eb50d1
1 changed files with 1 additions and 2 deletions

View File

@ -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);