aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/tui/tui-winsource.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c400d23..3703520 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2020-07-23 Tom de Vries <tdevries@suse.de>
+
+ PR tui/26282
+ * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
+ New default constructor.
+
2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
* disasm.c (do_mixed_source_and_assembly_deprecated): Don't
diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h
index fab1487..ba9c0fd 100644
--- a/gdb/tui/tui-winsource.h
+++ b/gdb/tui/tui-winsource.h
@@ -233,6 +233,11 @@ private:
struct tui_source_windows
{
+ /* Work around Wmaybe-uninitalized warning with g++ 11.0.0, see also
+ PR gcc/96295. Note that "tui_source_windows () = default" doesn't work
+ around the warning. */
+ tui_source_windows () {}
+
tui_source_window_iterator begin () const
{
return tui_source_window_iterator (tui_windows.begin (),