summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--liolib.c4
-rw-r--r--llex.c4
-rw-r--r--lua.c3
-rw-r--r--lzio.c3
4 files changed, 8 insertions, 6 deletions
diff --git a/liolib.c b/liolib.c
index 8db4e761..c1d2a455 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.48 1999/10/19 13:33:22 roberto Exp roberto $ 2** $Id: liolib.c,v 1.49 1999/10/26 11:00:12 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -608,7 +608,7 @@ static const struct luaL_reg iolibtag[] = {
608 608
609 609
610static void openwithtags (void) { 610static void openwithtags (void) {
611 int i; 611 unsigned int i;
612 int iotag = lua_newtag(); 612 int iotag = lua_newtag();
613 lua_newtag(); /* alloc CLOSEDTAG: assume that CLOSEDTAG = iotag-1 */ 613 lua_newtag(); /* alloc CLOSEDTAG: assume that CLOSEDTAG = iotag-1 */
614 for (i=0; i<sizeof(iolibtag)/sizeof(iolibtag[0]); i++) { 614 for (i=0; i<sizeof(iolibtag)/sizeof(iolibtag[0]); i++) {
diff --git a/llex.c b/llex.c
index c7d4e8d1..ba97cd0d 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.41 1999/10/11 16:13:42 roberto Exp roberto $ 2** $Id: llex.c,v 1.42 1999/10/19 13:33:22 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -34,7 +34,7 @@ static const char *const reserved [] = {"and", "do", "else", "elseif", "end",
34 34
35 35
36void luaX_init (void) { 36void luaX_init (void) {
37 int i; 37 unsigned int i;
38 for (i=0; i<(sizeof(reserved)/sizeof(reserved[0])); i++) { 38 for (i=0; i<(sizeof(reserved)/sizeof(reserved[0])); i++) {
39 TaggedString *ts = luaS_new(reserved[i]); 39 TaggedString *ts = luaS_new(reserved[i]);
40 ts->marked = (unsigned char)(RESERVEDMARK+i); /* reserved word */ 40 ts->marked = (unsigned char)(RESERVEDMARK+i); /* reserved word */
diff --git a/lua.c b/lua.c
index ec185a17..88ed4482 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.22 1999/08/16 20:52:00 roberto Exp roberto $ 2** $Id: lua.c,v 1.23 1999/08/18 17:40:54 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -45,6 +45,7 @@ static void lstop (void) {
45 45
46 46
47static void laction (int i) { 47static void laction (int i) {
48 (void)i; /* to avoid warnings */
48 signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop, 49 signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop,
49 terminate process (default action) */ 50 terminate process (default action) */
50 old_linehook = lua_setlinehook((lua_LHFunction)lstop); 51 old_linehook = lua_setlinehook((lua_LHFunction)lstop);
diff --git a/lzio.c b/lzio.c
index c59ec559..1216ef91 100644
--- a/lzio.c
+++ b/lzio.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.c,v 1.7 1999/03/05 13:15:50 roberto Exp roberto $ 2** $Id: lzio.c,v 1.8 1999/08/16 20:52:00 roberto Exp roberto $
3** a generic input stream interface 3** a generic input stream interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,6 +16,7 @@
16/* ----------------------------------------------------- memory buffers --- */ 16/* ----------------------------------------------------- memory buffers --- */
17 17
18static int zmfilbuf (ZIO* z) { 18static int zmfilbuf (ZIO* z) {
19 (void)z; /* to avoid warnings */
19 return EOZ; 20 return EOZ;
20} 21}
21 22