Improved diagnostic info on assignment to void types.

This commit is contained in:
acqn
2020-08-26 00:12:23 +08:00
committed by Oliver Schmidt
parent abcc2a8f1a
commit 8541f18340

View File

@@ -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));