[syslinux:master] lua: Preventing gcc warning on vesa.c

syslinux-bot for Erwan Velu erwanaliasr1 at gmail.com
Sun Feb 20 16:42:22 PST 2011


Commit-ID:  d1a9c28083fc3176bc6ae3908fcd038634337bf7
Gitweb:     http://syslinux.zytor.com/commit/d1a9c28083fc3176bc6ae3908fcd038634337bf7
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Sun, 6 Feb 2011 23:54:02 +0100
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Sun, 6 Feb 2011 23:54:02 +0100

lua: Preventing gcc warning on vesa.c



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

diff --git a/com32/lua/src/vesa.c b/com32/lua/src/vesa.c
index 6f34820..f09faf3 100644
--- a/com32/lua/src/vesa.c
+++ b/com32/lua/src/vesa.c
@@ -117,6 +117,8 @@ static int vesa_getmodes(lua_State *L)
 
 static int vesa_setmode(lua_State *L)
 {
+  /* Preventing GCC to complain about unused L*/
+  L=L;
   openconsole(&dev_rawcon_r, &dev_vesaserial_w);
 
   return 0;



More information about the Syslinux-commits mailing list