From: Brian Paul Date: Wed, 2 Sep 2009 14:45:34 +0000 (-0600) Subject: mesa: added #ifdef __GNUC__ around GLubyte bitfield usage X-Git-Tag: mesa-7.8~2082^2~237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83e4470d9a3367883b3fe699629f1d8648459a89;p=platform%2Fupstream%2Fmesa.git mesa: added #ifdef __GNUC__ around GLubyte bitfield usage It would be nice if there were a #pragma or something to disable the warnings: 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 but there doesn't appear to be a way to do that. --- diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index b16b8dd..770a2c2 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -82,8 +82,13 @@ texenv_doing_secondary_color(GLcontext *ctx) #define DISASSEM (MESA_VERBOSE & VERBOSE_DISASSEM) struct mode_opt { +#ifdef __GNUC__ GLubyte Source:4; /**< SRC_x */ GLubyte Operand:3; /**< OPR_x */ +#else + GLubyte Source; /**< SRC_x */ + GLubyte Operand; /**< OPR_x */ +#endif }; struct state_key {