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

2013-04-02 Thread Eric Anholt
Brian Paul writes: > On 04/02/2013 04:16 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 produces spurious warnings with >> the STATIC_ASSERT() macro (which uses a typedef to provoke a compile >> error in the ev

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

2013-04-02 Thread Brian Paul
On 04/02/2013 04:16 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 produces spurious warnings with the STATIC_ASSERT() macro (which uses a typedef to provoke a compile error in the event of an assertion failure). Th

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

2013-04-02 Thread Paul Berry
GCC 4.8 now warns about typedefs that are local to a scope and not used anywhere within that scope. This produces spurious warnings with the STATIC_ASSERT() macro (which uses a typedef to provoke a compile error in the event of an assertion failure). This patch avoids the warning using the GCC __