From: Tom Tromey <tromey@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: PATCH: Fix warning in printcmd.c
Date: Fri, 28 Sep 2001 08:16:00 -0000 [thread overview]
Message-ID: <8766a372ut.fsf@creche.redhat.com> (raw)
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 */
next reply other threads:[~2001-09-28 8:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-28 8:16 Tom Tromey [this message]
2001-09-28 10:37 ` Andrew Cagney
2001-09-28 10:40 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8766a372ut.fsf@creche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox