OSDN Git Service

configure: Leverage gcc warn options to enable safe use of C99 features where possible.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 26 Feb 2015 16:46:48 +0000 (16:46 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Tue, 3 Mar 2015 09:25:11 +0000 (09:25 +0000)
commit80c5bd7ef0319d14cd0362a763d9d15e9ba2c946
tree0e0203c502bf84033f33ce50eb07c3a589201e94
parent3d4d77a5dc7bc9f60d7845ff1d8d5b23f988232a
configure: Leverage gcc warn options to enable safe use of C99 features where possible.

The main objective of this change is to enable Linux developers to use
more of C99 throughout Mesa, with confidence that the portions that need
to be built with MSVC -- and only those portions --, stay portable.

This is achieved by using the appropriate -Werror= options only on the
places they need to be used.

Unfortunately we still need MSVC 2008 on a few portions of the code
(namely llvmpipe and its dependencies).  I hope to eventually eliminate
this so that we can use C99 everywhere, but there are technical/logistic
challenges (specifically, newer Windows SDKs no longer bundle MSVC,
instead require a full installation of Visual Studio, and that has
hindered adoption of newer MSVC versions on our build processes.)
Thankfully we have more directy control over our OpenGL driver, which is
why we're now able to migrate to MSVC 2013 for most of the tree.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
configure.ac
src/egl/main/Makefile.am
src/gallium/auxiliary/Makefile.am
src/gallium/drivers/llvmpipe/Makefile.am
src/gallium/state_trackers/egl/Makefile.am
src/gallium/targets/egl-static/Makefile.am
src/glsl/Makefile.am
src/loader/Makefile.am
src/mapi/Makefile.am
src/mesa/Makefile.am
src/util/Makefile.am