From patchwork Thu Apr 18 02:13:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 237397 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 65A852C0197 for ; Thu, 18 Apr 2013 12:16:08 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 881824A2DA; Thu, 18 Apr 2013 04:15:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xsvdM0lgQ-5U; Thu, 18 Apr 2013 04:15:52 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C1DB54A2E8; Thu, 18 Apr 2013 04:15:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4835A4A2FE for ; Thu, 18 Apr 2013 04:14:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0toTbNUiIUYs for ; Thu, 18 Apr 2013 04:14:56 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-vc0-f201.google.com (mail-vc0-f201.google.com [209.85.220.201]) by theia.denx.de (Postfix) with ESMTPS id D03084A2C8 for ; Thu, 18 Apr 2013 04:14:38 +0200 (CEST) Received: by mail-vc0-f201.google.com with SMTP id hz11so236149vcb.4 for ; Wed, 17 Apr 2013 19:14:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=W+LJgwfFVquL8gd3khRL2Qj02M43oa1vXfqSz4crrbA=; b=ntP4teV5UwJG5eDo2HIq0qU0ox0/5eFp4P3IyzNmr5zxrLmblSjPST2xsWznDuHc+W 7uCIVYOj8eLKKYN0MSrCHsLvRN+5XSeBE1fe2UlCjooxSc9DA2KoBZAdLcjl95P1rvup J352D6tYKhot6MpXVBPLu+haM/P+BkdQHYW5BD+q7sNfWO2WjmY9ObaqZKan6fUjhXA6 hc6w3PwkL6dLAH/ovEAojSaKpYA3METrO5vXv3fT3H3DgRuREqN70pfZ4LUbXwmuKmNX EiAHI5WKh+rexpgAfJxpDb3qmNLHaguyKwlg0Y/1xkNBgCNmTc9dPkYdMa0WLMyULeY5 ZCMQ== X-Received: by 10.236.85.5 with SMTP id t5mr4657175yhe.33.1366251276349; Wed, 17 Apr 2013 19:14:36 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id g7si2109425yhf.0.2013.04.17.19.14.36 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Wed, 17 Apr 2013 19:14:36 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.83.1]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 5065C32B0B2; Wed, 17 Apr 2013 19:14:12 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id CCE111607AE; Wed, 17 Apr 2013 19:14:11 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 17 Apr 2013 19:13:45 -0700 Message-Id: <1366251228-19884-17-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1366251228-19884-1-git-send-email-sjg@chromium.org> References: <1366251228-19884-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQkvI/+p6CXUJBv6DA9t3wSV2VVKXu9cgwiwefBOoM9ZEeEgzVMeHrnkNY2UPLehwdZLeDu+vQDuAZvFrdcbYHaTbo25pOC2uCGESuF3Bo60vfQ3fpFkTyiK9N19qpDH12rE9SCD297JcWTESq6e/sTiuwJ/nA4WHa27+kd+tGEie+bXlOAPgYCnQENx/wjC+p/TVjQ2 Cc: Graeme Russ , u-boot-review@google.com Subject: [U-Boot] [PATCH 16/19] x86: Fix warning in cmd_ximg.c when CONFIG_GZIP is not defined X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This local variable is not used unless CONFIG_GZIP is defined. Fix it. Signed-off-by: Simon Glass --- common/cmd_ximg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index ea0a26e..02084b0 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -58,7 +58,9 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) const void *fit_data; size_t fit_len; #endif +#ifdef CONFIG_GZIP uint unc_len = CONFIG_SYS_XIMG_LEN; +#endif uint8_t comp; verify = getenv_yesno("verify");