[Mesa-dev] building with -Wshadow

Roland Scheidegger sroland at vmware.com
Wed Feb 10 15:59:47 UTC 2016


Am 10.02.2016 um 05:43 schrieb Dave Airlie:
> I was just messing with warning flags on virglrenderer and noticed
> -Wshadow generated a fair few warnings with gallium, so I did a mesa
> build with -Wshadow enabled and it was fairly messy,
> 
> do we care? there could be bugs hiding in -Wshadow land.
> 
> Dave.

I never heard of that option until now ;-).
I suppose in general it would be good coding style not to reuse the same
variable names, but maybe there's more to it...

Roland




More information about the mesa-dev mailing list