mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 16:33:00 +00:00
Skipped anonymous tag names in diagnosis on empty structs/unions.
This commit is contained in:
parent
afdf398a0b
commit
07e349c517
@ -955,7 +955,13 @@ SymEntry* AddStructSym (const char* Name, unsigned Flags, unsigned Size, SymTabl
|
||||
TagEntry = 0;
|
||||
} else if (Size == 0) {
|
||||
/* Empty struct is not supported now */
|
||||
Error ("Empty %s type '%s' is not supported", SCType == SC_STRUCT ? "struct" : "union", Name);
|
||||
if (!IsAnonName (Name)) {
|
||||
Error ("Empty %s type '%s' is not supported",
|
||||
SCType == SC_STRUCT ? "struct" : "union", Name);
|
||||
} else {
|
||||
Error ("Empty %s type is not supported",
|
||||
SCType == SC_STRUCT ? "struct" : "union");
|
||||
}
|
||||
TagEntry = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user