浏览代码

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>
Wolfgang Denk 13 年之前
父节点
当前提交
4d6402b012
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      post/post.c

+ 1 - 2
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