Removed the extra "unused parameter" warning when the parameter had an duplicated identifier error.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user