aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-layout.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-30 20:34:57 -0600
committerTom Tromey <tom@tromey.com>2019-07-17 12:19:15 -0600
commitb7fbad913e8874b9a887eb149b14975343bfb7ab (patch)
tree5676fa23001bad75258387dbdd1bc55119dff75a /gdb/tui/tui-layout.h
parent4e1e56b9818109a39bb1b035fd50dd05a00699f2 (diff)
downloadgdb-b7fbad913e8874b9a887eb149b14975343bfb7ab.zip
gdb-b7fbad913e8874b9a887eb149b14975343bfb7ab.tar.gz
gdb-b7fbad913e8874b9a887eb149b14975343bfb7ab.tar.bz2
Change tui_set_layout to return void
tui_set_layout can't meaningfully be called with UNDEFINED_LAYOUT; and instead of trying to handle this case, simply assert and have the function return void. No caller was checking the return value anyway. gdb/ChangeLog 2019-07-17 Tom Tromey <tom@tromey.com> * tui/tui-layout.h (tui/tui-layout): Return void. * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
Diffstat (limited to 'gdb/tui/tui-layout.h')
-rw-r--r--gdb/tui/tui-layout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-layout.h b/gdb/tui/tui-layout.h
index bc21d29..5f19933 100644
--- a/gdb/tui/tui-layout.h
+++ b/gdb/tui/tui-layout.h
@@ -30,6 +30,6 @@ extern int tui_default_win_height (enum tui_win_type,
enum tui_layout_type);
extern int tui_default_win_viewport_height (enum tui_win_type,
enum tui_layout_type);
-extern enum tui_status tui_set_layout (enum tui_layout_type);
+extern void tui_set_layout (enum tui_layout_type);
#endif /* TUI_TUI_LAYOUT_H */