Changed error/warning messages not using the term 'tentative' according to PR reviews.

This commit is contained in:
acqn
2020-08-05 00:19:28 +08:00
committed by Oliver Schmidt
parent b2d3b8379c
commit 43efc256f1

View File

@@ -449,7 +449,7 @@ void Compile (const char* FileName)
/* Assume array size of 1 */ /* Assume array size of 1 */
SetElementCount (Entry->Type, 1); SetElementCount (Entry->Type, 1);
Size = SizeOf (Entry->Type); Size = SizeOf (Entry->Type);
Warning ("Tentative array '%s[]' assumed to have one element", Entry->Name); Warning ("Incomplete array '%s[]' assumed to have one element", Entry->Name);
} }
Sym = GetSymType (GetElementType (Entry->Type)); Sym = GetSymType (GetElementType (Entry->Type));
@@ -474,7 +474,7 @@ void Compile (const char* FileName)
Entry->Flags |= SC_DEF; Entry->Flags |= SC_DEF;
} else { } else {
/* Tentative declared variable is still of incomplete type */ /* Tentative declared variable is still of incomplete type */
Error ("Tentative definition of '%s' of type '%s' is incomplete", Error ("Definition of '%s' has type '%s' that is never completed",
Entry->Name, Entry->Name,
GetFullTypeName (Entry->Type)); GetFullTypeName (Entry->Type));
} }