1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

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 ... */
return CF_INT | CF_UNSIGNED;
case T_VOID:
case T_ENUM:
/* Incomplete enum type */
Error ("Incomplete type '%s'", GetFullTypeName (T));