Fix double semicolon in struct declaration
commite726fe91c1c0323fc704168a010a7ca7670c1f5e
authorChristopher Li <sparse@chrisli.org>
Wed, 31 Jan 2007 07:17:17 +0000 (30 23:17 -0800)
committerJosh Triplett <josh@freedesktop.org>
Fri, 23 Feb 2007 03:38:19 +0000 (22 19:38 -0800)
tree5e3bfe259e62a2105c447964d6ce6185c85c0abd
parent9978594f780a0be98b740c63725d0abf3f2497b0
Fix double semicolon in struct declaration

Pavel discovered this test case:
void test(void)
{
       struct { int foo;; } val;
       memset(&val, 0, sizeof(val));
}

That generates this warning:
test.c:5:8: warning: memset with byte count of 0

Sparse ends up creating a node with empty ctype in the member list.  Avoid
doing that, which eliminates the warning.

Signed-Off-By: Christopher Li<spase@chrisli.org>
parse.c