This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Switch -Wunused-variable on?
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