This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 0/6] Add -Wunused-but-set-parameter and -Wunused-but-set-variable
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 6 Jun 2016 15:33:26 -0600
- Subject: [RFA 0/6] Add -Wunused-but-set-parameter and -Wunused-but-set-variable
- Authentication-results: sourceware.org; auth=none
I happened to notice an unused variable in the newly minted Rust code,
so I decided to take a look at adding some warnings to prevent this.
This series adds -Wunused-but-set-parameter and
-Wunused-but-set-variable to the build. First come the patches to
remove all the warnings, and the final patch enables the compiler
flags.
I've split up the patches for easier review, and according to the type
of patch. I think they're generally self-explanatory.
I built and regression tested this using --enable-targets=all on
x86-64 Fedora 23. However, I could not update the various nat-*
files, so there are probably unfixed warnings lurking there.
Tom