1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Ignore internal symbols when generating warnings about unused symbols

git-svn-id: svn://svn.cc65.org/cc65/trunk@3680 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-12-04 22:03:35 +00:00
parent 8e845815df
commit 5227580f46

View File

@ -549,9 +549,12 @@ void SymCheck (void)
/* Check for defined symbols that were never referenced */
if ((S->Flags & SF_DEFINED) != 0 && (S->Flags & SF_REFERENCED) == 0) {
PWarning (&S->Pos, 2,
"Symbol `%s' is defined but never used",
GetString (S->Name));
const char* Name = GetString (S->Name);
if (Name[0] != '.') { /* Ignore internals */
PWarning (&S->Pos, 2,
"Symbol `%s' is defined but never used",
GetString (S->Name));
}
}
/* Assign an index to all imports */