Bug 3073

Summary: i386 asm/sigcontext.h has union without a name
Product: uClibc Reporter: Will Moore <will.moore>
Component: OtherAssignee: Carmelo Amoroso <carmelo.amoroso>
Status: RESOLVED INVALID    
Severity: minor CC: uclibc-cvs
Priority: P5    
Version: 0.9.31   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Will Moore 2011-01-12 10:08:47 UTC
i386 /asm/sigcontext.h line 96 has
    };
when it should be
    }some_union_name;

Gcc coughs at the lack of name for the union when configured -pedantic -pedantic-errors.  Looking at the git tree
online this is still present though I tripped over it when using uclibc 0.9.31
as a part of buildroot2010.11.
Comment 1 Will Moore 2011-01-12 13:12:46 UTC
Ignore previous comment "Looking at the git tree
online this is still present ", I have not a clue how what is in git gets into i386 /asm/sigcontext.h.   I saw this in 0.9.31 and it may be fixed later versions...
Comment 2 Carmelo Amoroso 2011-02-01 10:33:28 UTC
Hi Will,
the sigcontext.h you are referring to is part of the kernel headers.
You should post a patch to the LKML instead of uCLibc.

Cheers,
Carmelo
Comment 3 Bernhard Reutner-Fischer 2011-02-02 16:38:30 UTC
This is called anonymous union, and is a normal (IIRC) gnu99 thing.