[Mesa-dev] [PATCH 3/9] scons: Disable MSVC signed/unsigned mismatch warnings.

Emil Velikov emil.l.velikov at gmail.com
Wed Nov 26 11:52:56 PST 2014


On 26/11/14 19:16, Jan Vesely wrote:
> On Wed, 2014-11-26 at 18:47 +0000, jfonseca at vmware.com wrote:
>> From: José Fonseca <jfonseca at vmware.com>
>>
>> Unfortunately gcc completely ignores the issue, and as result code that
>> mixes signed/unsigned is so widespread through the code base end up
>> being little more than noise, potentially obscuring more pertinent
>> warnings.
> 
> gcc does not ignore the issue. there is -Wsign-compare. it's part of
> -Wextra (and thus disabled by default). I build mesa with -Wextra (and
> -Wno-unused-paramter) and my setup adds these warnings:
> 
> 154 -Wmissing-field-initializers
> 1 -Wold-style-declaration
> 614 -Wsign-compare
> 8 -Wtype-limits
> 
> I think it might be worth fixing these and and adding -Wextra to gcc
> build flags.
> 
I had the same noble idea, but the numbers are enough to push most/all
people away. Until we resolve them, it might be worth keeping the
annoyance factor low. Please send in patches I'm sure Jose won't object.
I might even join the "fun" :)

Cheers,
Emil



More information about the mesa-dev mailing list