Improved type conversion diagnostic messages.
Allowed incompatible pointer assignments with warnings. Fixed Issue #1089.
This commit is contained in:
@@ -78,7 +78,8 @@ static int CopyStruct (ExprDesc* LExpr, ExprDesc* RExpr)
|
||||
|
||||
/* Check for equality of the structs */
|
||||
if (TypeCmp (ltype, RExpr->Type) < TC_STRICT_COMPATIBLE) {
|
||||
Error ("Incompatible types");
|
||||
TypeCompatibilityDiagnostic (ltype, RExpr->Type, 1,
|
||||
"Incompatible types in assignment to '%s' from '%s'");
|
||||
}
|
||||
|
||||
/* Do we copy using the primary? */
|
||||
|
||||
Reference in New Issue
Block a user