Re: [Mesa-dev] [PATCH v2] Avoid spurious GCC warnings in STATIC_ASSERT() macro.

2013-04-03 Thread Kenneth Graunke
On 04/03/2013 12:22 PM, Paul Berry wrote: GCC 4.8 now warns about typedefs that are local to a scope and not used anywhere within that scope. This produced spurious warnings with the STATIC_ASSERT() macro (which used a typedef to provoke a compile error in the event of an assertion failure). Th

[Mesa-dev] [PATCH v2] Avoid spurious GCC warnings in STATIC_ASSERT() macro.

2013-04-03 Thread Paul Berry
GCC 4.8 now warns about typedefs that are local to a scope and not used anywhere within that scope. This produced spurious warnings with the STATIC_ASSERT() macro (which used a typedef to provoke a compile error in the event of an assertion failure). This patch switches to a simpler technique tha