This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: Fix warning in printcmd.c
- To: gdb-patches at sources dot redhat dot com
- Subject: PATCH: Fix warning in printcmd.c
- From: Tom Tromey <tromey at redhat dot com>
- Date: 28 Sep 2001 09:27:06 -0600
- Reply-To: tromey at redhat dot com
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 <tromey@redhat.com>
* 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 */