From patchwork Sat Oct 29 19:42:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 122572 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 2ED7FB6F7C for ; Sun, 30 Oct 2011 06:43:11 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 97733292B4; Sat, 29 Oct 2011 21:43:07 +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 9++D5JmoukJx; Sat, 29 Oct 2011 21:43:07 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B388129321; Sat, 29 Oct 2011 21:43:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 62A9B28C1D for ; Sat, 29 Oct 2011 21:42: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 SxCDoG0SPP5X for ; Sat, 29 Oct 2011 21:42:52 +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-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by theia.denx.de (Postfix) with ESMTP id 6920128F17 for ; Sat, 29 Oct 2011 21:42:38 +0200 (CEST) Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id CCC151C1DA17 for ; Sat, 29 Oct 2011 21:42:35 +0200 (CEST) X-Auth-Info: ZeRAU7sXMMzIVrh5RWKIpWH8xD4oI8516uDFMZxX1/g= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id C63D41C00085 for ; Sat, 29 Oct 2011 21:42:35 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id A3CD5C913106 for ; Sat, 29 Oct 2011 21:42:35 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id 974FF1809856; Sat, 29 Oct 2011 21:42:35 +0200 (CEST) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Sat, 29 Oct 2011 21:42:23 +0200 Message-Id: <1319917343-14604-2-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6.4 In-Reply-To: <1319917343-14604-1-git-send-email-wd@denx.de> References: <1319917343-14604-1-git-send-email-wd@denx.de> Subject: [U-Boot] [PATCH 2/2] post/post.c: fix GCC 4.6 build warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Fix: post.c: In function 'post_log': post.c:425:7: warning: variable 'i' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk --- post/post.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/post/post.c b/post/post.c index ab8e959..0e67ad7 100644 --- a/post/post.c +++ b/post/post.c @@ -417,7 +417,6 @@ int post_info(char *name) int post_log(char *format, ...) { va_list args; - uint i; char printbuffer[CONFIG_SYS_PBSIZE]; va_start(args, format); @@ -425,7 +424,7 @@ int post_log(char *format, ...) /* For this to work, printbuffer must be larger than * anything we ever want to print. */ - i = vsprintf(printbuffer, format, args); + vsprintf(printbuffer, format, args); va_end(args); #ifdef CONFIG_LOGBUFFER