diff options
author | Chad Versace <[email protected]> | 2012-08-09 12:59:22 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-08-10 09:59:41 -0700 |
commit | 9f5a5d541d5c1ff2e440791ba8ff44d0233daeb4 (patch) | |
tree | 7bb8653759859cbcbc09dadc04cc9eb4d83aeced /src/mesa | |
parent | f7af4beae5e25c060d4f2c53d55b0e87ee9bdaeb (diff) |
mesa: Remove C++11 narrowing warnings
Add -Wno-narrowing to CXXFLAGS for gcc.
It is safe to add this flag even for versions of gcc that don't recognize
it. From the GCC Manual [1]: "[GCC] allows the use of new -Wno- options
with old compilers".
This removes warnings of the form
warning: narrowing conversion of X from 'int' to 'float' inside { } is
ill-formed in C++11 [-Wnarrowing]
in ff_fragment_shader.cpp and gen6_blorp.cpp of the form. When building
i965, I observed no other difference in the build output.
[1] http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions