From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Subject: Re: dtc: Remove gcc 4.6 "set but not used" warnings Date: Sat, 17 Sep 2011 11:47:43 -0500 Message-ID: References: <20110912011843.GK9025@yookeroo.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <20110912011843.GK9025-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: David Gibson Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org > A number of the dtc testcases trigger the new "variable set but not > used" warning from gcc 4.6. That is they have variables which are > assigned, but then never read after that point. > > In a couple of cases this is just because the variables aren't needed, > so this patch removes them. In subnode_offset.c, it's because one > pair of variables we clearly intended to test we don't actually test. > This patch also adds this missing check. > > This patch makes the testsuite compile clean with gcc 4.6. > > Signed-off-by: David Gibson Applied. jdl