post/post.c: fix GCC 4.6 build warnings
authorWolfgang Denk <wd@denx.de>
Sat, 29 Oct 2011 09:42:23 +0000 (09:42 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 3 Nov 2011 19:44:18 +0000 (20:44 +0100)
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>
post/post.c

index ab8e959..0e67ad7 100644 (file)
@@ -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