From 2fdb1e6b0d8620b740b2655a8b5d6d89a558a285 Mon Sep 17 00:00:00 2001 From: compyx Date: Tue, 17 May 2022 10:05:25 +0200 Subject: [PATCH] Fix set but unused variable --- src/cc65/codeopt.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/cc65/codeopt.c b/src/cc65/codeopt.c index 9c90a0e5f..440b10751 100644 --- a/src/cc65/codeopt.c +++ b/src/cc65/codeopt.c @@ -397,7 +397,6 @@ static void ReadOptStats (const char* Name) /* Read the optimizer statistics file */ { char Buf [256]; - unsigned Lines; /* Try to open the file */ FILE* F = fopen (Name, "r"); @@ -407,7 +406,6 @@ static void ReadOptStats (const char* Name) } /* Read and parse the lines */ - Lines = 0; while (fgets (Buf, sizeof (Buf), F) != 0) { char* B; @@ -419,9 +417,6 @@ static void ReadOptStats (const char* Name) unsigned long TotalRuns; unsigned long TotalChanges; - /* Count lines */ - ++Lines; - /* Remove trailing white space including the line terminator */ B = Buf; Len = strlen (B);