fix warning in lcd-as-memframe.c

The fix is to actually remove unused variables. Those were unused from day 1,
which I find slightly suspicious so either there is some problem or the code was
copy-pasted and modified, making some variables useless.

Change-Id: I41caf52d469b48c969ece969540de67d87e77357
This commit is contained in:
Amaury Pouly 2017-09-17 15:13:52 +02:00
parent 3b7263be2d
commit ac59669d46

View file

@ -33,12 +33,10 @@ extern void lcd_write_yuv420_lines(fb_data *dst,
/* Draw a partial YUV colour bitmap - similiar behavior to lcd_blit_yuv /* Draw a partial YUV colour bitmap - similiar behavior to lcd_blit_yuv
in the core */ in the core */
const unsigned char *ysrc, *usrc, *vsrc; const unsigned char *ysrc, *usrc, *vsrc;
int height = 2, linecounter;
fb_data *row_end; fb_data *row_end;
/* width and height must be >= 2 and an even number */ /* width and height must be >= 2 and an even number */
width &= ~1; width &= ~1;
linecounter = height >> 1;
#if LCD_WIDTH >= LCD_HEIGHT #if LCD_WIDTH >= LCD_HEIGHT
row_end = dst + width; row_end = dst + width;