From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tromey To: gdb-patches@sources.redhat.com Subject: PATCH: Fix warning in printcmd.c Date: Fri, 28 Sep 2001 08:16:00 -0000 Message-id: <8766a372ut.fsf@creche.redhat.com> X-SW-Source: 2001-09/msg00417.html This patch fixes a warning in printcmd.c. tui_set_layout isn't declared anywhere it can see. I rebuilt gdb with this patch on x86 Red Hat Linux 6.2. This patch moves the declaration of tui_set_layout to a header included by printcmd.c. It also removes the declaration of a couple of functions that don't exist. Ok to install? Tom Index: tui/ChangeLog from Tom Tromey * tuiLayout.h (tui_set_layout): Don't declare. * tui.h (tui_vAddWinToLayout): Don't declare. (tui_vSetLayoutTo): Likewise. (tui_set_layout): Declare. Index: tui/tui.h =================================================================== RCS file: /cvs/src/src/gdb/tui/tui.h,v retrieving revision 1.10 diff -u -r1.10 tui.h --- tui/tui.h 2001/07/23 21:13:57 1.10 +++ tui/tui.h 2001/09/28 15:14:14 @@ -126,8 +126,7 @@ extern void tui_vStartNewLines (va_list); /* tuiLayout.c */ -extern void tui_vAddWinToLayout (va_list); -extern TuiStatus tui_vSetLayoutTo (va_list); +extern TuiStatus tui_set_layout (const char *); /* tuiSourceWin.c */ extern void tuiDisplayMainFunction (void); Index: tui/tuiLayout.h =================================================================== RCS file: /cvs/src/src/gdb/tui/tuiLayout.h,v retrieving revision 1.4 diff -u -r1.4 tuiLayout.h --- tui/tuiLayout.h 2001/07/20 22:26:54 1.4 +++ tui/tuiLayout.h 2001/09/28 15:14:14 @@ -26,7 +26,6 @@ extern void tuiAddWinToLayout (TuiWinType); extern int tuiDefaultWinHeight (TuiWinType, TuiLayoutType); extern int tuiDefaultWinViewportHeight (TuiWinType, TuiLayoutType); -extern TuiStatus tui_set_layout (const char *); extern TuiStatus tuiSetLayout (TuiLayoutType, TuiRegisterDisplayType); #endif /*TUI_LAYOUT_H */