[syslinux:master] com32/lua/src/vesa.c: remove variables set but not used

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Mar 16 13:18:50 PDT 2011


Commit-ID:  903c3835dc9f92722606964a4215cb4035698865
Gitweb:     http://syslinux.zytor.com/commit/903c3835dc9f92722606964a4215cb4035698865
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700

com32/lua/src/vesa.c: remove variables set but not used

gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/lua/src/vesa.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/com32/lua/src/vesa.c b/com32/lua/src/vesa.c
index 7591119..9f28134 100644
--- a/com32/lua/src/vesa.c
+++ b/com32/lua/src/vesa.c
@@ -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 */
@@ -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 */



More information about the Syslinux-commits mailing list