From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5744 invoked by alias); 31 Jan 2013 03:22:31 -0000 Received: (qmail 5471 invoked by uid 22791); 31 Jan 2013 03:22:30 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from na3sys009aog120.obsmtp.com (HELO na3sys009aog120.obsmtp.com) (74.125.149.140) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 31 Jan 2013 03:22:25 +0000 Received: from mx10.qnx.com ([209.226.137.110]) (using TLSv1) by na3sys009aob120.postini.com ([74.125.148.12]) with SMTP ID DSNKUQnjb4j9xsnzc7GtwJy8Rqp3MtkkQqBW@postini.com; Wed, 30 Jan 2013 19:22:24 PST Received: by mx10.qnx.com (Postfix, from userid 500) id 535FF20E1C; Wed, 30 Jan 2013 22:22:23 -0500 (EST) Received: from exhts.ott.qnx.com (exch2 [10.222.2.136]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx10.qnx.com (Postfix) with ESMTPS id 12BB820B61; Wed, 30 Jan 2013 22:22:23 -0500 (EST) Received: from [10.222.41.4] (10.222.2.5) by exch2.ott.qnx.com (10.222.2.136) with Microsoft SMTP Server id 14.2.318.4; Wed, 30 Jan 2013 22:22:22 -0500 Message-ID: <5109E36E.9000209@qnx.com> Date: Thu, 31 Jan 2013 03:22:00 -0000 From: Aleksandar Ristovski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 Newsgroups: gmane.comp.gdb.patches To: Jan Kratochvil , "gdb-patches@sourceware.org" Subject: [patch] cleanup: remove unused - solib Content-Type: multipart/mixed; boundary="------------090201010909040504030303" 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/msg00733.txt.bz2 --------------090201010909040504030303 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 454 [resend to gdb-patches] Hello, This is removing unused variables and allows compiling solib-svr4.c and solib-target.c with -Wunused. Thanks, Aleksandar Ristovski QNX Software Systems ChangeLog: Aleksandar Ristovski * solib-svr4.c (svr4_keep_data_in_core): Remove unused LMO. (svr4_read_so_list): Remove unused LMO. * solib-target.c (solib_target_relocate_section_addresses): Remove unused FLAGS. --------------090201010909040504030303 Content-Type: text/x-patch; name="Wunused-solib-201301301952.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wunused-solib-201301301952.patch" Content-length: 1639 Index: gdb/solib-svr4.c =================================================================== RCS file: /cvs/src/src/gdb/solib-svr4.c,v retrieving revision 1.172 diff -u -p -r1.172 solib-svr4.c --- gdb/solib-svr4.c 1 Jan 2013 06:32:51 -0000 1.172 +++ gdb/solib-svr4.c 31 Jan 2013 00:52:38 -0000 @@ -848,7 +848,6 @@ svr4_keep_data_in_core (CORE_ADDR vaddr, CORE_ADDR ldsomap; struct so_list *new; struct cleanup *old_chain; - struct link_map_offsets *lmo; CORE_ADDR name_lm; info = get_svr4_info (); @@ -862,7 +861,6 @@ svr4_keep_data_in_core (CORE_ADDR vaddr, if (!ldsomap) return 0; - lmo = svr4_fetch_link_map_offsets (); new = XZALLOC (struct so_list); old_chain = make_cleanup (xfree, new); new->lm_info = lm_info_read (ldsomap); @@ -1175,7 +1173,6 @@ svr4_read_so_list (CORE_ADDR lm, struct for (; lm != 0; prev_lm = lm, lm = next_lm) { - struct link_map_offsets *lmo = svr4_fetch_link_map_offsets (); struct so_list *new; struct cleanup *old_chain; int errcode; Index: gdb/solib-target.c =================================================================== RCS file: /cvs/src/src/gdb/solib-target.c,v retrieving revision 1.26 diff -u -p -r1.26 solib-target.c --- gdb/solib-target.c 1 Jan 2013 06:32:51 -0000 1.26 +++ gdb/solib-target.c 31 Jan 2013 00:52:38 -0000 @@ -333,7 +333,6 @@ static void solib_target_relocate_section_addresses (struct so_list *so, struct target_section *sec) { - int flags = bfd_get_section_flags (sec->bfd, sec->the_bfd_section); CORE_ADDR offset; /* Build the offset table only once per object file. We can not do --------------090201010909040504030303--