On Wed, Sep 02, 2009, Brian Paul wrote:
> Unfortunately gcc (version 4.3.2 anyway) warns on this:
> main/texenvprogram.c:87: warning: type of bit-field ‘Source’ is a GCC
> extension
> main/texenvprogram.c:88: warning: type of bit-field ‘Operand’ is a GCC
> extension
> 
> I'm trying to find a #pragma or something to silence the warning...

How about:

#ifdef __GNUC__
    __extension__ GLubyte Source:4;
    __extension__ GLubyte Operand:3;
#else
    /* portable variant here */
#endif

That satisfies gcc -ansi -pedantic for me.

Cheers,
Gary.
-- 
     Gary Wong         [email protected]         http://www.cs.utah.edu/~gtw/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to