Improved diagnostic info on assignment to void types.
This commit is contained in:
@@ -903,6 +903,7 @@ unsigned TypeOf (const Type* T)
|
|||||||
/* Address of ... */
|
/* Address of ... */
|
||||||
return CF_INT | CF_UNSIGNED;
|
return CF_INT | CF_UNSIGNED;
|
||||||
|
|
||||||
|
case T_VOID:
|
||||||
case T_ENUM:
|
case T_ENUM:
|
||||||
/* Incomplete enum type */
|
/* Incomplete enum type */
|
||||||
Error ("Incomplete type '%s'", GetFullTypeName (T));
|
Error ("Incomplete type '%s'", GetFullTypeName (T));
|
||||||
|
|||||||
Reference in New Issue
Block a user