mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 04:54:54 +00:00
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)) {
|
if (IS_Get (&WarnUnusedFunc)) {
|
||||||
Warning ("Function '%s' is defined but never used", Entry->Name);
|
Warning ("Function '%s' is defined but never used", Entry->Name);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!IsAnonName (Entry->Name)) {
|
||||||
if (IS_Get (&WarnUnusedVar)) {
|
if (IS_Get (&WarnUnusedVar)) {
|
||||||
Warning ("Variable '%s' is defined but never used", Entry->Name);
|
Warning ("Variable '%s' is defined but never used", Entry->Name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user