From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1259 invoked by alias); 11 Jan 2013 02:14:23 -0000 Received: (qmail 1231 invoked by uid 22791); 11 Jan 2013 02:14:21 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jan 2013 02:14:17 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TtU8O-00045H-GA from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 10 Jan 2013 18:14:16 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 10 Jan 2013 18:14:16 -0800 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Thu, 10 Jan 2013 18:14:15 -0800 From: Yao Qi To: Subject: [obv] Make 'disable_display' static. Date: Fri, 11 Jan 2013 02:14:00 -0000 Message-ID: <1357870430-19757-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00208.txt.bz2 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 * 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