new warnings with option "-W" (gcc)

This commit is contained in:
Roberto Ierusalimschy
1999-11-09 15:59:35 -02:00
parent cde179b369
commit a7fa7bafc8
4 changed files with 8 additions and 6 deletions

3
lua.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.c,v 1.22 1999/08/16 20:52:00 roberto Exp roberto $
** $Id: lua.c,v 1.23 1999/08/18 17:40:54 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -45,6 +45,7 @@ static void lstop (void) {
static void laction (int i) {
(void)i; /* to avoid warnings */
signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop,
terminate process (default action) */
old_linehook = lua_setlinehook((lua_LHFunction)lstop);