diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-09 15:59:35 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-09 15:59:35 -0200 |
commit | a7fa7bafc808103cbb8e27a3c80168617bac8a4f (patch) | |
tree | 2f87488fa77d88ad695bacf695d90eab96ded076 /lua.c | |
parent | cde179b36979c58d9380d3c4dd29b61412d13b51 (diff) | |
download | lua-a7fa7bafc808103cbb8e27a3c80168617bac8a4f.tar.gz lua-a7fa7bafc808103cbb8e27a3c80168617bac8a4f.tar.bz2 lua-a7fa7bafc808103cbb8e27a3c80168617bac8a4f.zip |
new warnings with option "-W" (gcc)
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 | ||
47 | static void laction (int i) { | 47 | static 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); |