From: Mathieu Desnoyers Date: Mon, 16 May 2011 22:08:17 +0000 (-0400) Subject: Don't ever support named struct, enum, variant declaration within structures X-Git-Tag: v0.1~50 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=9ecfc3e6b596858f772e09a78832526ba808638a 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 --- 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)