Skip to content

Commit

Permalink
com32/cmenu/libmenu/help.c: remove variables set but not used
Browse files Browse the repository at this point in the history
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent 3bead6f commit 0171777
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions com32/cmenu/libmenu/help.c
Expand Up @@ -54,10 +54,9 @@ static int countlines(char *buffer)
static void printtext(char *buf, int from)
{
char *f, *t;
int right, nlines, i;
int nlines, i;

// clear window to print
right = nc - HELP_RIGHT_MARGIN;
nlines = nr - HELP_BODY_ROW - HELP_BOTTOM_MARGIN - 1;

f = findline(buf, from);
Expand All @@ -66,7 +65,8 @@ static void printtext(char *buf, int from)
if (*f == '\n')
f++; // start of from+1st line
t = f;
while (i < nlines) {

for (i = 0; i < nlines; i++) {
gotoxy(HELP_BODY_ROW + i, HELP_LEFT_MARGIN);
clear_end_of_line();
putchar(SO);
Expand All @@ -83,7 +83,6 @@ static void printtext(char *buf, int from)
}
putchar('\n');
t++;
i++;
}
}

Expand Down

0 comments on commit 0171777

Please sign in to comment.