aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-05-10 09:25:19 -0600
committerTom Tromey <tromey@adacore.com>2019-05-29 08:56:23 -0600
commit33a6bc350f5b4f03d586ba9d32667b6fea1dce4a (patch)
treefb6b3a39d0e5e851f73ac4907809389504eabca0 /gdb/inflow.c
parent000439d52897541ad00a84026ac471b4f8cb3c97 (diff)
downloadgdb-33a6bc350f5b4f03d586ba9d32667b6fea1dce4a.zip
gdb-33a6bc350f5b4f03d586ba9d32667b6fea1dce4a.tar.gz
gdb-33a6bc350f5b4f03d586ba9d32667b6fea1dce4a.tar.bz2
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.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index eba7a93..621f69a 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -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;