From patchwork Fri Feb 7 09:21:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 327258 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id CB11D2C0329 for ; Thu, 6 Mar 2014 12:58:02 +1100 (EST) Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E9EC82C0097 for ; Fri, 7 Feb 2014 20:21:41 +1100 (EST) Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Feb 2014 09:21:37 -0000 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 7 Feb 2014 09:21:35 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 378E21B08061 for ; Fri, 7 Feb 2014 09:21:07 +0000 (GMT) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s179LMcj65601554 for ; Fri, 7 Feb 2014 09:21:22 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s17ALYve001678 for ; Fri, 7 Feb 2014 03:21:35 -0700 Received: from smtp.lab.toulouse-stg.fr.ibm.com (srv01.lab.toulouse-stg.fr.ibm.com [9.101.4.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s17ALYee001664; Fri, 7 Feb 2014 03:21:34 -0700 Received: from hermes.ibm.com (icon-9-164-189-109.megacenter.de.ibm.com [9.164.189.109]) by smtp.lab.toulouse-stg.fr.ibm.com (Postfix) with ESMTP id 6449B210FFF; Fri, 7 Feb 2014 10:21:33 +0100 (CET) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: tony@bakeyournoodle.com Subject: [PATCH 2/2] fix unused compile warnings Date: Fri, 7 Feb 2014 10:21:24 +0100 Message-Id: <1391764884-3929-2-git-send-email-clg@fr.ibm.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391764884-3929-1-git-send-email-clg@fr.ibm.com> References: <1391764884-3929-1-git-send-email-clg@fr.ibm.com> MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14020709-4966-0000-0000-000008508871 X-Mailman-Approved-At: Thu, 06 Mar 2014 12:58:00 +1100 Cc: yaboot-devel@lists.ozlabs.org X-BeenThere: yaboot-devel@lists.ozlabs.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical and development discussion regarding yaboot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: yaboot-devel-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Yaboot-devel" This patch introduces a dependency on gcc. It should be fine. Signed-off-by: Cédric Le Goater --- second/fs_swap.c | 3 ++- second/yaboot.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/second/fs_swap.c b/second/fs_swap.c index 1efb96e1d812..39d0e6e1e1fc 100644 --- a/second/fs_swap.c +++ b/second/fs_swap.c @@ -88,7 +88,8 @@ swap_open(struct boot_file_t* file, struct partition_t* part, for(i=0; i< ARRAY_SIZE(signatures); i++) { int blk = part->part_start + (signatures[i].offset / part->blocksize); - int rc = prom_readblocks(file->of_device, blk, BLKCOUNT, buffer); + int __attribute__((unused)) rc = + prom_readblocks(file->of_device, blk, BLKCOUNT, buffer); /* FIXME: going past partition length */ DEBUG_F("Looking for %s @ offset 0x%x, rc == %d, blk=0x%x\n", diff --git a/second/yaboot.c b/second/yaboot.c index ec0c0859d718..918f13168a6c 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -1509,7 +1509,8 @@ setup_display(void) 0xff, 0xff, 0x55, 0xff, 0xff, 0xff }; - int i, result; + int i; + int __attribute__((unused)) result; prom_handle scrn = PROM_INVALID_HANDLE; /* Try Apple's mac-boot screen ihandle */