[hackers] [scc] Do not warning in forward references || Roberto E. Vargas Caballero
commit 68ab5ce9603446bf4a4098e7d03f32f9be99171f
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Aug 13 12:34:30 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Aug 13 12:34:30 2015 +0200
Do not warning in forward references
diff --git a/cc1/decl.c b/cc1/decl.c
index 68ca93c..24dcbb3 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -521,8 +521,14 @@ identifier(struct decl *dcl)
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 */
Received on Thu Aug 13 2015 - 20:02:11 CEST
This archive was generated by hypermail 2.3.0
: Thu Aug 13 2015 - 20:12:19 CEST