mirror of https://github.com/cc65/cc65.git
Avoided "Variable 'XXX' is defined but never used" error message resulted from an earlier error.
This commit is contained in:
parent
519a52d92c
commit
87f8893886
|
@ -178,7 +178,7 @@ static void CheckSymTable (SymTable* Tab)
|
|||
if (IS_Get (&WarnUnusedFunc)) {
|
||||
Warning ("Function '%s' is defined but never used", Entry->Name);
|
||||
}
|
||||
} else {
|
||||
} else if (!IsAnonName (Entry->Name)) {
|
||||
if (IS_Get (&WarnUnusedVar)) {
|
||||
Warning ("Variable '%s' is defined but never used", Entry->Name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue