From 9ecfc3e6b596858f772e09a78832526ba808638a Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 16 May 2011 18:08:17 -0400 Subject: [PATCH] Don't ever support named struct, enum, variant declaration within structures Even gcc emits a warning: blah.c: struct blah { struct bloh { int a; }; struct bloh a; }; gcc -c -o blah blah.c blah.c:4: warning: declaration does not declare anything Signed-off-by: Mathieu Desnoyers --- formats/ctf/metadata/ctf-parser.y | 4 ---- 1 file changed, 4 deletions(-) diff --git a/formats/ctf/metadata/ctf-parser.y b/formats/ctf/metadata/ctf-parser.y index 697f942c..1d40d04f 100644 --- a/formats/ctf/metadata/ctf-parser.y +++ b/formats/ctf/metadata/ctf-parser.y @@ -33,10 +33,6 @@ int yydebug; -/* - * TODO: support enum, variant and struct declarations in scopes. - */ - /* Join two lists, put "add" at the end of "head". */ static inline void _cds_list_splice_tail (struct cds_list_head *add, struct cds_list_head *head) -- 2.34.1