[Mesa-dev] uvd code break with C99 compile

Dave Airlie airlied at gmail.com
Fri Apr 26 01:20:20 PDT 2013


On Fri, Apr 26, 2013 at 4:48 PM, Jose Fonseca <jfonseca at vmware.com> wrote:
>
>
> ----- Original Message -----
>> Building on RHEL6 tinderbox, we get -std=c99, and the radeon uvd code
>> uses anonymous unions which this disables.
>>
>> It doesn't look too difficult to fix, just wondering if there was a
>> reason for using anon unions in the first place?
>
> FWIW, anonymous unions are a de-facto standard supported by all compilers (including MSVC).  And are part of C11.
>
> Jose

Yeah I've no idea why I'm building in the tinderbox with -std=c99 it
must be from the jhbuild setup,

I was just wondering we were okay with using them in Mesa at this point.

Dave.


More information about the mesa-dev mailing list