Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [obv] Make 'disable_display' static.
@ 2013-01-11  2:14 Yao Qi
  2013-01-11  8:07 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Yao Qi @ 2013-01-11  2:14 UTC (permalink / raw)
  To: gdb-patches

Hi,
disable_display is only called by disable_current_display in
printcmd.c, so we can make it static.  I'll apply it in two days.

gdb:

2013-01-11  Yao Qi  <yao@codesourcery.com>

	* breakpoint.h (disable_display): Remove declaration.
	* printcmd.c (disable_display): Make it static.
---
 gdb/breakpoint.h |    2 --
 gdb/printcmd.c   |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 95dc980..0bef89b 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1365,8 +1365,6 @@ extern void disable_current_display (void);
 
 extern void do_displays (void);
 
-extern void disable_display (int);
-
 extern void clear_displays (void);
 
 extern void disable_breakpoint (struct breakpoint *);
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index a576d88..d47adb6 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1803,7 +1803,7 @@ do_displays (void)
 /* Delete the auto-display which we were in the process of displaying.
    This is done when there is an error or a signal.  */
 
-void
+static void
 disable_display (int num)
 {
   struct display *d;
-- 
1.7.7.6


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-11 15:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11  2:14 [obv] Make 'disable_display' static Yao Qi
2013-01-11  8:07 ` Eli Zaretskii
2013-01-11  8:51   ` Yao Qi
2013-01-11 10:22     ` Eli Zaretskii
2013-01-11 11:32   ` Joel Brobecker
2013-01-11 14:39   ` Tom Tromey
2013-01-11 15:01     ` Pedro Alves
2013-01-11 15:27     ` Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox