From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953Ab1HZFAy (ORCPT ); Fri, 26 Aug 2011 01:00:54 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:37453 "EHLO e23smtp06.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316Ab1HZFAv (ORCPT ); Fri, 26 Aug 2011 01:00:51 -0400 Date: Fri, 26 Aug 2011 14:49:02 +1000 From: David Gibson To: Stephen Rothwell Cc: jdl@jdl.com, John Bonesio , ppc-dev , linux-kernel@vger.kernel.org Subject: Re: [PATCH] dtc: remove some warnings Message-ID: <20110826044902.GJ2308@yookeroo.fritz.box> Mail-Followup-To: David Gibson , Stephen Rothwell , jdl@jdl.com, John Bonesio , ppc-dev , linux-kernel@vger.kernel.org References: <20110826112643.f86132d55edc5d452df3ebd0@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110826112643.f86132d55edc5d452df3ebd0@canb.auug.org.au> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 26, 2011 at 11:26:43AM +1000, Stephen Rothwell wrote: > I assume that these variables were used in the past but not removed when > their usage was removed. > > Fixes these warnings: > > scripts/dtc/dtc.c: In function 'main': > scripts/dtc/dtc.c:102:17: warning: variable 'check' set but not used [-Wunused-but-set-variable] > scripts/dtc/flattree.c: In function 'flat_read_mem_reserve': > scripts/dtc/flattree.c:700:14: warning: variable 'p' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Stephen Rothwell Acked-by: David Gibson Yeah, I noticed these gcc 4.6 warnings recently, but didn't get around to sending a patch. Jon, please apply. Uh.. except that this is a patch against the in kernel dtc, rather than upstream. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson