scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 11c86352844f5300d504753a5e0019e24a8a0eec
parent 6a436d0cc010b4e281d3fb5c0adcffca6175f536
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  8 Jan 2016 17:42:06 +0100

Disallow casting from void

This cast is not allowed

Diffstat:
cc1/expr.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -255,7 +255,6 @@ convert(Node *np, Type *newtp, char iscast) case INT: case FLOAT: case ENUM: - case VOID: break; default: return NULL;