Add new GCC 9 warnings to warnings.m4

GCC 9 has a few new warnings that aren't enabled in the gdb build by
default: -Wdeprecated-copy, -Wdeprecated-copy-dtor, and
-Wredundant-move.  This patch enables them all.

Tested by rebuilding with a new GCC (git master) on x86-64 Fedora 29.

gdb/ChangeLog
2019-05-29  Tom Tromey  <tromey@adacore.com>

	* inflow.c (struct terminal_info): Add default operator=.
	* configure: Rebuild.
	* warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
	-Wdeprecated-copy-dtor, -Wredundant-move.

gdb/gdbserver/ChangeLog
2019-05-29  Tom Tromey  <tromey@adacore.com>

	* configure: Rebuild.
This commit is contained in:
Tom Tromey
2019-05-10 09:25:19 -06:00
parent 000439d528
commit 33a6bc350f
6 changed files with 25 additions and 3 deletions

View File

@@ -61,6 +61,8 @@ struct terminal_info
terminal_info () = default;
~terminal_info ();
terminal_info &operator= (const terminal_info &) = default;
/* The name of the tty (from the `tty' command) that we gave to the
inferior when it was started. */
char *run_terminal = nullptr;