mirror of
https://github.com/cc65/cc65.git
synced 2025-01-22 21:32:57 +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) &&
|
||||
!SymHasAttr (Entry, atUnused)) {
|
||||
if (Flags & SC_PARAM) {
|
||||
if (IS_Get (&WarnUnusedParam)) {
|
||||
if (IS_Get (&WarnUnusedParam) &&
|
||||
!IsAnonName (Entry->Name)) {
|
||||
Warning ("Parameter '%s' is never used", Entry->Name);
|
||||
}
|
||||
} else if ((Flags & SC_TYPEMASK) == SC_FUNC) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user