From owner-freebsd-current@FreeBSD.ORG Wed May 20 07:51:22 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8EBBAF1D; Wed, 20 May 2015 07:51:22 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 188FF1E2C; Wed, 20 May 2015 07:51:21 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t4K7oU7D058835 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 20 May 2015 10:50:30 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t4K7oU7D058835 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t4K7oULw058834; Wed, 20 May 2015 10:50:30 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 20 May 2015 10:50:30 +0300 From: Konstantin Belousov To: Adrian Chadd Cc: freebsd-current Subject: Re: libc/gen: unused variables Message-ID: <20150520075030.GJ2499@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 07:51:22 -0000 On Wed, May 20, 2015 at 12:11:08AM -0700, Adrian Chadd wrote: > Hi, > > here's a patch against -head that eliminates gcc-4.9 complaining about > set-but-unused variables. It just comments them out for now - are > these okay to eliminate, or is there something else that's > broken/missing? Of course, the patch as posted must not be committed. For dl_init_phdr_info(), it is acceptable to eliminate AT_PHENT case and phent local. I have not looked at the other places.