The TUI has some "return;" statements at the end of void-returning
functions. There's no need for these, so this patch removes them.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.c (tui_update_source_window)
(tui_update_source_window_as_is)
(tui_update_source_windows_with_line): Remove return.
* tui/tui-disasm.c (tui_show_disassem)
(tui_show_disassem_and_update_source): Remove return.
* tui/tui.c (tui_reset): Remove return.
* tui/tui-wingeneral.c
(tui_check_and_display_highlight_if_needed): Remove return.
+2019-07-17 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-winsource.c (tui_update_source_window)
+ (tui_update_source_window_as_is)
+ (tui_update_source_windows_with_line): Remove return.
+ * tui/tui-disasm.c (tui_show_disassem)
+ (tui_show_disassem_and_update_source): Remove return.
+ * tui/tui.c (tui_reset): Remove return.
+ * tui/tui-wingeneral.c
+ (tui_check_and_display_highlight_if_needed): Remove return.
+
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-win.c (parse_scrolling_args): Throw separate errors.
if (tui_current_layout () != SRC_DISASSEM_COMMAND
&& win_with_focus == TUI_SRC_WIN)
tui_set_win_focus_to (TUI_DISASM_WIN);
-
- return;
}
else
tui_update_locator_fullname ("?");
}
-
- return;
}
void
tui_unhighlight_win (win_info);
}
- return;
}
{
win_info->horizontal_offset = 0;
tui_update_source_window_as_is (win_info, gdbarch, s, line_or_addr, noerror);
-
- return;
}
tui_set_win_focus_to (win_info);
}
}
-
-
- return;
}
}
break;
}
-
- return;
}
void
#endif /* CBREAK */
| VTDELAY | ALLDELAY);
mode.sg_flags |= XTABS | ECHO | CRMOD | ANYP;
-
- return;
}
#endif