From patchwork Sun Apr 11 04:06:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 57975 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bilbo.ozlabs.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.1 X-Original-To: tony@bakeyournoodle.com Delivered-To: tony@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id B6CAEB7ED2 for ; Sun, 11 Apr 2010 18:48:37 +1000 (EST) Received: by ozlabs.org (Postfix, from userid 1010) id 2A74FB7D1E; Sun, 11 Apr 2010 14:07:31 +1000 (EST) Date: Sun, 11 Apr 2010 14:06:34 +1000 From: Anton Blanchard To: yaboot-devel@lists.ozlabs.org Subject: [PATCH 9/10] Avoid gcc j_len unused warning Message-ID: <20100411040634.GF11751@kryten> References: <20100411040149.GA3142@kryten> <20100411040226.GB3142@kryten> <20100411040256.GC3142@kryten> <20100411040321.GD3142@kryten> <20100411040427.GA11751@kryten> <20100411040448.GB11751@kryten> <20100411040521.GC11751@kryten> <20100411040559.GD11751@kryten> <20100411040615.GE11751@kryten> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100411040615.GE11751@kryten> User-Agent: Mutt/1.5.20 (2009-06-14) X-Mailman-Approved-At: Sun, 11 Apr 2010 18:48:32 +1000 X-BeenThere: yaboot-devel@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Technical and development discussion regarding yaboot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: yaboot-devel-bounces+tony=bakeyournoodle.com@lists.ozlabs.org Errors-To: yaboot-devel-bounces+tony=bakeyournoodle.com@lists.ozlabs.org Content-Length: 803 Lines: 24 gcc is spewing an unused warning about j_len. We initialise it in both cases of the if statement, but initialise it to 0 anyway to avoid the warning. Signed-off-by: Anton Blanchard Index: yaboot/second/fs_reiserfs.c =================================================================== --- yaboot.orig/second/fs_reiserfs.c 2010-04-11 12:17:51.000000000 +1000 +++ yaboot/second/fs_reiserfs.c 2010-04-11 12:18:00.000000000 +1000 @@ -211,7 +211,7 @@ block_read( __u32 blockNr, __u32 start, while ( transactions-- > 0 ) { int i = 0; - int j_len; + int j_len = 0; if ( *journal_table != 0xffffffff ) {