Skip to content

Commit

Permalink
com32/lua/src/vesa.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 72ac6e1 commit 903c383
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions com32/lua/src/vesa.c
Expand Up @@ -13,10 +13,9 @@ int vesacon_load_background(const char *filename);
static int vesa_getmodes(lua_State *L)
{
com32sys_t rm;
uint16_t mode, bestmode, *mode_ptr;
uint16_t mode, *mode_ptr;
struct vesa_general_info *gi;
struct vesa_mode_info *mi;
enum vesa_pixel_format bestpxf;
int nmode = 1;

/* Allocate space in the bounce buffer for these structures */
Expand Down Expand Up @@ -47,8 +46,6 @@ static int vesa_getmodes(lua_State *L)
/* Search for a 640x480 mode with a suitable color and memory model... */

mode_ptr = GET_PTR(gi->video_mode_ptr);
bestmode = 0;
bestpxf = PXF_NONE;

while ((mode = *mode_ptr++) != 0xFFFF) {
mode &= 0x1FF; /* The rest are attributes of sorts */
Expand Down

0 comments on commit 903c383

Please sign in to comment.