From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25387 invoked by alias); 27 Aug 2012 09:46:34 -0000 Received: (qmail 25363 invoked by uid 22791); 27 Aug 2012 09:46:33 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,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; Mon, 27 Aug 2012 09:46:08 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1T5vtX-0006Hc-JG from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Mon, 27 Aug 2012 02:46:07 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 27 Aug 2012 02:46:07 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.1.289.1; Mon, 27 Aug 2012 02:46:06 -0700 From: Yao Qi To: Subject: [PATCH 1/3] add static to mi_cmds Date: Mon, 27 Aug 2012 09:46:00 -0000 Message-ID: <1346060757-30130-2-git-send-email-yao@codesourcery.com> In-Reply-To: <1346060757-30130-1-git-send-email-yao@codesourcery.com> References: <1346060757-30130-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: 2012-08/txt/msg00793.txt.bz2 Hi, 'mi_cmds' is not used out of file mi-cmds.c, so 'static' is added to it. It is obvious, and I'll check it in. gdb: 2012-08-27 Yao Qi * mi/mi-cmds.c (mi_cmds): Add 'static'. --- gdb/mi/mi-cmds.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index 79fbba1..aebc2b8 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -30,7 +30,7 @@ struct mi_cmd; static struct mi_cmd **lookup_table (const char *command); static void build_table (struct mi_cmd *commands); -struct mi_cmd mi_cmds[] = +static struct mi_cmd mi_cmds[] = { { "ada-task-info", { NULL, 0 }, mi_cmd_ada_task_info }, { "add-inferior", { NULL, 0 }, mi_cmd_add_inferior }, -- 1.7.7.6