Skip to content
Snippets Groups Projects
Commit 8db84487 authored by Stefano Babic's avatar Stefano Babic Committed by Anatolij Gustschin
Browse files

VIDEO: mx3fb: GCC4.6 fix build warnings


Fix:
mx3fb.c: In function 'video_hw_init':
mx3fb.c:827:30: warning: variable 'vesa_idx' set but not used

Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
CC: Anatolij Gustschin <agust@denx.de>
parent 15006cb7
No related branches found
No related tags found
No related merge requests found
......@@ -824,7 +824,7 @@ void *video_hw_init(void)
char *penv;
u32 memsize;
unsigned long t1, hsynch, vsynch;
int bits_per_pixel, i, tmp, vesa_idx = 0, videomode;
int bits_per_pixel, i, tmp, videomode;
tmp = 0;
......@@ -857,7 +857,6 @@ void *video_hw_init(void)
mode = (struct ctfb_res_modes *)
&res_mode_init[vesa_modes[i].resindex];
bits_per_pixel = vesa_modes[i].bits_per_pixel;
vesa_idx = vesa_modes[i].resindex;
} else {
mode = (struct ctfb_res_modes *) &var_mode;
bits_per_pixel = video_get_params(mode, penv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment