Switch -Wunused-variable on?

Sergio Durigan Junior sergiodj@redhat.com
Mon Apr 23 15:49:00 GMT 2012


On Monday, April 23 2012, Tom Tromey wrote:

> I'd say that the best approach would be to make the declarations
> conditional in the same way that the uses are.
>
> If there are a lot of problem cases with this approach, or if it makes
> the code too ugly, then maybe it would be better just not to use this
> flag.

Ok, that makes sense to me.  Since there are tons of places with unused
variables in the code, I will take some time to look and convert the
proper places to use this solution.

Thanks!

-- 
Sergio



More information about the Gdb mailing list