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 'current_display_number' static.


Hi,
'current_display_number' is not used out of printcmd.c, and not used
in insight either, so we can make it static.
I'll apply it in two days.

gdb:

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

	* printcmd.c (current_display_number): Make it static.
---
 gdb/printcmd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 0c7eb1e..a576d88 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -122,7 +122,7 @@ show_print_symbol_filename (struct ui_file *file, int from_tty,
    So that we can disable it if we get a signal within it.
    -1 when not doing one.  */
 
-int current_display_number;
+static int current_display_number;
 
 struct display
   {
-- 
1.7.7.6


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