pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
306 stars 72 forks source link

pawnc reports wrong filenames and line numbers on warning number 203 & 213 #732

Open Zorono opened 3 months ago

Zorono commented 3 months ago

Issue description:

when there is a unused variable and tag mismatch in a file which is included in multiple areas while I didn't use LABEL::Data yet or even that iterator labels

in main.pwn: #include "./structure/main.inc" in main.inc: #include "helpers/labels.inc" in labels.inc:

#define LABEL:: lbl_
#define MAX_LABELS (700)
enum LabelData
{
    ID,
    Text3D:Label,
    Text[150],
    Color,
    Interior,
    VirtualWorld,
    Float:PosX,
    Float:PosY,
    Float:PosZ
};
new LABEL::Data[MAX_LABELS][LabelData],
    Iterator:Labels<MAX_LABELS>,

Workspace Information: