mirror of
https://github.com/cc65/cc65.git
synced 2024-06-17 00:29:31 +00:00
Removed the extra "unused parameter" warning when the parameter had an duplicated identifier error.
This commit is contained in:
parent
7e80e55b6d
commit
de3087a7e9
|
@ -170,7 +170,8 @@ static void CheckSymTable (SymTable* Tab)
|
||||||
if (SymIsDef (Entry) && !SymIsRef (Entry) &&
|
if (SymIsDef (Entry) && !SymIsRef (Entry) &&
|
||||||
!SymHasAttr (Entry, atUnused)) {
|
!SymHasAttr (Entry, atUnused)) {
|
||||||
if (Flags & SC_PARAM) {
|
if (Flags & SC_PARAM) {
|
||||||
if (IS_Get (&WarnUnusedParam)) {
|
if (IS_Get (&WarnUnusedParam) &&
|
||||||
|
!IsAnonName (Entry->Name)) {
|
||||||
Warning ("Parameter '%s' is never used", Entry->Name);
|
Warning ("Parameter '%s' is never used", Entry->Name);
|
||||||
}
|
}
|
||||||
} else if ((Flags & SC_TYPEMASK) == SC_FUNC) {
|
} else if ((Flags & SC_TYPEMASK) == SC_FUNC) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user