Add -Wunused-variable to warnings.m4
authorTom Tromey <tom@tromey.com>
Mon, 9 Jul 2018 03:05:41 +0000 (21:05 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 19:20:07 +0000 (13:20 -0600)
commita0de763e32b381369896fef63d221376f29a9113
tree4471af9aa69c5ac073b1f4d3ef6255dd8b48266d
parent3b20124b3d6df31b5bde0f6bcd718cc40de8d49b
Add -Wunused-variable to warnings.m4

This adds -Wunused-variable to the build.  This required a special
check in configure in order to work around a bug in GCC 4.9.  Simon
ound the correct test to use, so I've added him to the ChangeLog.

gdb/ChangeLog
2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
    Tom Tromey  <tom@tromey.com>

* warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
test for it.
* configure: Rebuild.

gdb/gdbserver/ChangeLog
2018-07-22  Tom Tromey  <tom@tromey.com>

* configure: Rebuild.
gdb/ChangeLog
gdb/configure
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/warning.m4