From: Martin Liska Date: Wed, 3 Nov 2021 13:30:01 +0000 (+0100) Subject: gcov: Remove dead variable. X-Git-Tag: basepoints/gcc-13~3451 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4096eb50d108a9ccef134f2e891c751b1cc9f6b2;p=thirdparty%2Fgcc.git gcov: Remove dead variable. gcc/ChangeLog: * gcov.c (read_line): Remove dead variable. --- diff --git a/gcc/gcov.c b/gcc/gcov.c index 34f53ac2d787..8c10f6996094 100644 --- 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);