]> git.sur5r.net Git - cc65/blobdiff - src/ca65/error.c
Finished implemenation of commands to delete macros. Added the new commands to
[cc65] / src / ca65 / error.c
index 3de780d86bf643caed9951dfcd3f7af6f7a8148c..53e4bc5c00f0dfaec86d6464b1a2fe649ffc8bf6 100644 (file)
@@ -131,7 +131,7 @@ static void AddNotifications (const Collection* LineInfos)
     unsigned MaxCount = CollCount (LineInfos);
     if (MaxCount > 6) {
         MaxCount = 6;
-    }               
+    }
     Skipped = CollCount (LineInfos) - MaxCount;
     for (I = 1; I < MaxCount; ++I) {
         /* Get next line info */
@@ -149,7 +149,8 @@ static void AddNotifications (const Collection* LineInfos)
 
     /* Add a note if we have more stuff that we won't output */
     if (Skipped > 0) {
-        PrintMsg (GetSourcePos (CollConstAt (LineInfos, 0)), "Note",
+        const LineInfo* LI = CollConstAt (LineInfos, 0);
+        PrintMsg (GetSourcePos (LI), "Note",
                   "Dropping %u additional line infos", Skipped);
     }
 }