ref: c7fec7be35fc12334a3546c1189ae01cf36db729
parent: 59d88e7aa377b1cb4d333d7e13217e511978709c
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Jun 3 05:45:29 EDT 2012
Removed ; and IDENTIFIER checks in specifier These checks should be done in other place, because there is situation where they are not needed.
--- a/decl.c
+++ b/decl.c
@@ -115,20 +115,6 @@
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;
}