[hackers] [scc] Disallow casting from void || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 8 Jan 2016 17:51:13 +0100 (CET)

commit 11c86352844f5300d504753a5e0019e24a8a0eec
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 8 17:42:06 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 8 17:42:06 2016 +0100

    Disallow casting from void
    
    This cast is not allowed

diff --git a/cc1/expr.c b/cc1/expr.c
index ebb81be..08c1bcd 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -255,7 +255,6 @@ convert(Node *np, Type *newtp, char iscast)
                 case INT:
                 case FLOAT:
                 case ENUM:
- case VOID:
                         break;
                 default:
                         return NULL;
Received on Fri Jan 08 2016 - 17:51:13 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 08 2016 - 18:00:21 CET