avoid using 'UNUSED' (not defined outside the kernel)

This commit is contained in:
Roberto Ierusalimschy 2009-07-15 14:49:48 -03:00
parent 28419c4383
commit a5f68589c0

View file

@ -1,5 +1,5 @@
/*
** $Id: loadlib.c,v 1.62 2009/03/26 22:25:05 roberto Exp roberto $
** $Id: loadlib.c,v 1.63 2009/06/04 19:34:24 roberto Exp roberto $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
**
@ -124,7 +124,7 @@ static void ll_unloadlib (void *lib) {
static void *ll_load (lua_State *L, const char *path, int seeglb) {
HINSTANCE lib = LoadLibrary(path);
UNUSED(seeglb); /* symbols are 'global' by default? */
(void)(seeglb); /* symbols are 'global' by default? */
if (lib == NULL) pusherror(L);
return lib;
}
@ -238,19 +238,19 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
static void ll_unloadlib (void *lib) {
UNUSED(lib); /* to avoid warnings */
(void)(lib); /* to avoid warnings */
}
static void *ll_load (lua_State *L, const char *path, int seeglb) {
UNUSED(path); /* to avoid warnings */
(void)(path); /* to avoid warnings */
lua_pushliteral(L, DLMSG);
return NULL;
}
static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
UNUSED(lib); UNUSED(sym); /* to avoid warnings */
(void)(lib); (void)(sym); /* to avoid warnings */
lua_pushliteral(L, DLMSG);
return NULL;
}