This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 00/13] Add -Wunused-variable
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 12 Jul 2018 14:51:55 -0600
- Subject: [RFA 00/13] Add -Wunused-variable
An earlier thread pointed out the desirability of -Wunused-variable.
This series adds this to the build.
In a couple of spots I found it expedient to use ATTRIBUTE_UNUSED, but
mostly I avoided this. I also examined the other existing uses of
ATTRIBUTE_UNUSED to make sure they seemed ok. They did to me.
This series would not have been possible without Simon, who reduce the
needed configure test to a manageable size.
-Wunused-variable caught a couple real bugs. See patch #8 and patch #9.
Tested by the buildbot.
Tom