commit c7fec7be35fc12334a3546c1189ae01cf36db729 parent 59d88e7aa377b1cb4d333d7e13217e511978709c Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Sun, 3 Jun 2012 09:45:29 +0200 Removed ; and IDENTIFIER checks in specifier These checks should be done in other place, because there is situation where they are not needed. Diffstat:
M | decl.c | | | 14 | -------------- |
1 file changed, 0 insertions(+), 14 deletions(-)
diff --git a/decl.c b/decl.c @@ -115,20 +115,6 @@ repeat: case STRUCT: /* TODO */ case UNION: /* TODO */ case ENUM: /* TODO */ - case ';': - if (t != NULL) { - warning("useless type name in empty " - "declaration"); - } - goto repeat; - case IDENTIFIER: - /* TODO: deal with user types */ - if (t == NULL) { - warning_error(user_opt.implicit_int, - "type defaults to 'int' " - "in declaration of", yytext); - return T_INT; - } default: return t; }