summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-29 09:42:23 +0000
committerWolfgang Denk <wd@denx.de>2011-11-03 20:44:18 +0100
commit4d6402b012b074f4658785773c97745963c52dc5 (patch)
tree00d2353383bab36acd369bfda8ab548918b3ab40
parent50da8376630fb140067d8544293324f4f170c928 (diff)
downloadu-boot-imx-4d6402b012b074f4658785773c97745963c52dc5.zip
u-boot-imx-4d6402b012b074f4658785773c97745963c52dc5.tar.gz
u-boot-imx-4d6402b012b074f4658785773c97745963c52dc5.tar.bz2
post/post.c: fix GCC 4.6 build warnings
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 <wd@denx.de>
-rw-r--r--post/post.c3
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