This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Make 'disable_display' static.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]