* SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning
[fw/sdcc] / src / SDCCval.c
index 69f1532758ac88d8b92d35249dcaf5d3fdbac367..0dd0d22d7d4880e2c9746a95bea8fa7d02778c3d 100644 (file)
@@ -57,8 +57,8 @@ newiList (int type, void *ilist)
   nilist = Safe_alloc (sizeof (initList));
 
   nilist->type = type;
-  nilist->lineno = mylineno;
-  nilist->filename = currFname;
+  nilist->lineno = lineno;
+  nilist->filename = filename;
 
   switch (type)
     {