aboutsummaryrefslogtreecommitdiffstats
path: root/post
diff options
context:
space:
mode:
authorWolfgang Denk2011-10-29 04:42:23 -0500
committerWolfgang Denk2011-11-03 14:44:18 -0500
commit4d6402b012b074f4658785773c97745963c52dc5 (patch)
tree00d2353383bab36acd369bfda8ab548918b3ab40 /post
parent50da8376630fb140067d8544293324f4f170c928 (diff)
downloadu-boot-4d6402b012b074f4658785773c97745963c52dc5.tar.gz
u-boot-4d6402b012b074f4658785773c97745963c52dc5.tar.xz
u-boot-4d6402b012b074f4658785773c97745963c52dc5.zip
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>
Diffstat (limited to 'post')
-rw-r--r--post/post.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/post.c b/post/post.c
index ab8e959b7a..0e67ad74b7 100644
--- a/post/post.c
+++ b/post/post.c
@@ -417,7 +417,6 @@ int post_info(char *name)
417int post_log(char *format, ...) 417int post_log(char *format, ...)
418{ 418{
419 va_list args; 419 va_list args;
420 uint i;
421 char printbuffer[CONFIG_SYS_PBSIZE]; 420 char printbuffer[CONFIG_SYS_PBSIZE];
422 421
423 va_start(args, format); 422 va_start(args, format);
@@ -425,7 +424,7 @@ int post_log(char *format, ...)
425 /* For this to work, printbuffer must be larger than 424 /* For this to work, printbuffer must be larger than
426 * anything we ever want to print. 425 * anything we ever want to print.
427 */ 426 */
428 i = vsprintf(printbuffer, format, args); 427 vsprintf(printbuffer, format, args);
429 va_end(args); 428 va_end(args);
430 429
431#ifdef CONFIG_LOGBUFFER 430#ifdef CONFIG_LOGBUFFER