mirror of
https://github.com/lua/lua
synced 2024-09-28 15:20:31 +02:00
avoid using 'UNUSED' (not defined outside the kernel)
This commit is contained in:
parent
28419c4383
commit
a5f68589c0
1 changed files with 5 additions and 5 deletions
10
loadlib.c
10
loadlib.c
|
@ -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
|
** Dynamic library loader for Lua
|
||||||
** See Copyright Notice in lua.h
|
** 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) {
|
static void *ll_load (lua_State *L, const char *path, int seeglb) {
|
||||||
HINSTANCE lib = LoadLibrary(path);
|
HINSTANCE lib = LoadLibrary(path);
|
||||||
UNUSED(seeglb); /* symbols are 'global' by default? */
|
(void)(seeglb); /* symbols are 'global' by default? */
|
||||||
if (lib == NULL) pusherror(L);
|
if (lib == NULL) pusherror(L);
|
||||||
return lib;
|
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) {
|
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) {
|
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);
|
lua_pushliteral(L, DLMSG);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
|
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);
|
lua_pushliteral(L, DLMSG);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue