[Mesa-dev] [PATCH] mesa: Set -Werror=declaration-after-statement in mesa/Makefile

Chad Versace chad at chad-versace.us
Fri Jan 28 14:15:41 PST 2011


On 01/28/2011 01:03 PM, Brian Paul wrote:
> I think this should be done up in the configure.ac file.  Otherwise
> we're assuming gcc in the Makefile.

I was attempting to limit this change to files within core mesa.

Setting this option globally breaks the Intel driver build, because
those drivers use C99. For GCC builds, configure.ac explicitly sets
--std=c99. See thread: "Mesa (master): mesa: fix compilation".

I am no Makefile or autoconf expert, so I see no other way to do this.

-- 
Chad Versace
chad at chad-versace.us


More information about the mesa-dev mailing list