Fix another uninitialized var warning.
Change-Id: I27d06003d5e9218a940057af1b5c5c1557e7653c
This commit is contained in:
parent
7dd65f7d9b
commit
91b52a1ade
1 changed files with 3 additions and 3 deletions
|
@ -41,15 +41,15 @@ static int double_height = 1;
|
|||
|
||||
void lcd_print_icon(int x, int icon_line, bool enable, char **icon)
|
||||
{
|
||||
int row, col;
|
||||
int row = 0, col = 0; /* shut up gcc */
|
||||
int y = (ICON_HEIGHT+(CHAR_HEIGHT*2+2)*CHAR_PIXEL) * icon_line;
|
||||
|
||||
y += BORDER_MARGIN;
|
||||
x += BORDER_MARGIN;
|
||||
|
||||
for (row = 0; icon[row]; row++)
|
||||
for (; icon[row]; row++)
|
||||
{
|
||||
for (col = 0; icon[row][col]; col++)
|
||||
for (; icon[row][col]; col++)
|
||||
{
|
||||
switch (icon[row][col])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue