diff --git a/src/ca65/symtab.c b/src/ca65/symtab.c index bfc1ef9b2..ec853248c 100644 --- a/src/ca65/symtab.c +++ b/src/ca65/symtab.c @@ -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 */