ref: 68ab5ce9603446bf4a4098e7d03f32f9be99171f
parent: d6f2174895d35fd88a9e2095800f15a032ff1c9d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Aug 13 08:34:30 EDT 2015
Do not warning in forward references
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -521,8 +521,14 @@
if (!name) {
sym->type = tp;
- warn("empty declaration");
- return sym;
+ switch (tp->op) {
+ default:
+ warn("empty declaration");
+ case STRUCT:
+ case UNION:
+ case ENUM:
+ return sym;
+ }
}
/* TODO: Add warning about ANSI limits */