Skip to content

Commit

Permalink
post/post.c: fix GCC 4.6 build warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wdenx committed Nov 3, 2011
1 parent 50da837 commit 4d6402b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions post/post.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,14 @@ int post_info(char *name)
int post_log(char *format, ...)
{
va_list args;
uint i;
char printbuffer[CONFIG_SYS_PBSIZE];

va_start(args, 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
Expand Down

0 comments on commit 4d6402b

Please sign in to comment.