This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Make 'current_display_number' static.
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 11 Jan 2013 10:09:11 +0800
- Subject: [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