This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] fix tui -Werror problems
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 12 Feb 2003 16:17:12 +0100
- Subject: [commit] fix tui -Werror problems
Just FYI,
Some fallout from the readline upgrade.
committed,
Andrew
2003-02-12 Andrew Cagney <ac131313@redhat.com>
* tuiIO.c (tui_prep_terminal): Add one notused parameter.
* tui.c (tui_rl_switch_mode): Add two notused parameters.
(tui_rl_change_windows, tui_rl_next_keymap): Ditto.
(tui_rl_delete_other_windows): Ditto.
(tui_rl_change_windows, tui_rl_delete_other_windows): Update
calls.
Index: tui.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui.c,v
retrieving revision 1.28
diff -u -r1.28 tui.c
--- tui.c 29 Nov 2002 19:15:16 -0000 1.28
+++ tui.c 12 Feb 2003 15:13:48 -0000
@@ -102,7 +102,7 @@
/* TUI readline command.
Switch the output mode between TUI/standard gdb. */
static int
-tui_rl_switch_mode (void)
+tui_rl_switch_mode (int notused1, int notused2)
{
if (tui_active)
{
@@ -138,10 +138,10 @@
a functionality close to the Emacs split-window command. We always
show two windows (src+asm), (src+regs) or (asm+regs). */
static int
-tui_rl_change_windows (void)
+tui_rl_change_windows (int notused1, int notused2)
{
if (!tui_active)
- tui_rl_switch_mode ();
+ tui_rl_switch_mode (0/*notused*/, 0/*notused*/);
if (tui_active)
{
@@ -186,10 +186,10 @@
/* TUI readline command.
Delete the second TUI window to only show one. */
static int
-tui_rl_delete_other_windows (void)
+tui_rl_delete_other_windows (int notused1, int notused2)
{
if (!tui_active)
- tui_rl_switch_mode ();
+ tui_rl_switch_mode (0/*notused*/, 0/*notused*/);
if (tui_active)
{
@@ -255,7 +255,7 @@
/* TUI readline command.
Switch between TUI SingleKey mode and gdb readline editing. */
static int
-tui_rl_next_keymap (void)
+tui_rl_next_keymap (int notused1, int notused2)
{
tui_set_key_mode (tui_current_key_mode == tui_command_mode
? tui_single_key_mode : tui_command_mode);
Index: tuiIO.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiIO.c,v
retrieving revision 1.20
diff -u -r1.20 tuiIO.c
--- tuiIO.c 26 Oct 2002 10:38:57 -0000 1.20
+++ tuiIO.c 12 Feb 2003 15:13:49 -0000
@@ -262,7 +262,7 @@
/* Readline callback to prepare the terminal. It is called once
each time we enter readline. Terminal is already setup in curses mode. */
static void
-tui_prep_terminal (void)
+tui_prep_terminal (int notused1)
{
/* Save the prompt registered in readline to correctly display it.
(we can't use gdb_prompt() due to secondary prompts and can't use