1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-28 20:29:46 +00:00

Merge pull request #1745 from Compyx/codeopt-unused-var-fix

Fix set but unused variable
This commit is contained in:
Bob Andrews 2022-05-17 14:47:19 +02:00 committed by GitHub
commit 25efedf3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,7 +397,6 @@ static void ReadOptStats (const char* Name)
/* Read the optimizer statistics file */ /* Read the optimizer statistics file */
{ {
char Buf [256]; char Buf [256];
unsigned Lines;
/* Try to open the file */ /* Try to open the file */
FILE* F = fopen (Name, "r"); FILE* F = fopen (Name, "r");
@ -407,7 +406,6 @@ static void ReadOptStats (const char* Name)
} }
/* Read and parse the lines */ /* Read and parse the lines */
Lines = 0;
while (fgets (Buf, sizeof (Buf), F) != 0) { while (fgets (Buf, sizeof (Buf), F) != 0) {
char* B; char* B;
@ -419,9 +417,6 @@ static void ReadOptStats (const char* Name)
unsigned long TotalRuns; unsigned long TotalRuns;
unsigned long TotalChanges; unsigned long TotalChanges;
/* Count lines */
++Lines;
/* Remove trailing white space including the line terminator */ /* Remove trailing white space including the line terminator */
B = Buf; B = Buf;
Len = strlen (B); Len = strlen (B);