aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 14:49:48 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 14:49:48 -0300
commita5f68589c06b92412cc835a8aef19338544c3c79 (patch)
treeb107700dd97ae0f85b9e87278d0ddf225b4970e9 /loadlib.c
parent28419c43831078f517e66aded3d8afae80d73692 (diff)
downloadlua-a5f68589c06b92412cc835a8aef19338544c3c79.tar.gz
lua-a5f68589c06b92412cc835a8aef19338544c3c79.tar.bz2
lua-a5f68589c06b92412cc835a8aef19338544c3c79.zip
avoid using 'UNUSED' (not defined outside the kernel)
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/loadlib.c b/loadlib.c
index 557cd2eb..a9f03dd7 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loadlib.c,v 1.62 2009/03/26 22:25:05 roberto Exp roberto $ 2** $Id: loadlib.c,v 1.63 2009/06/04 19:34:24 roberto Exp roberto $
3** Dynamic library loader for Lua 3** Dynamic library loader for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5** 5**
@@ -124,7 +124,7 @@ static void ll_unloadlib (void *lib) {
124 124
125static void *ll_load (lua_State *L, const char *path, int seeglb) { 125static void *ll_load (lua_State *L, const char *path, int seeglb) {
126 HINSTANCE lib = LoadLibrary(path); 126 HINSTANCE lib = LoadLibrary(path);
127 UNUSED(seeglb); /* symbols are 'global' by default? */ 127 (void)(seeglb); /* symbols are 'global' by default? */
128 if (lib == NULL) pusherror(L); 128 if (lib == NULL) pusherror(L);
129 return lib; 129 return lib;
130} 130}
@@ -238,19 +238,19 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
238 238
239 239
240static void ll_unloadlib (void *lib) { 240static void ll_unloadlib (void *lib) {
241 UNUSED(lib); /* to avoid warnings */ 241 (void)(lib); /* to avoid warnings */
242} 242}
243 243
244 244
245static void *ll_load (lua_State *L, const char *path, int seeglb) { 245static void *ll_load (lua_State *L, const char *path, int seeglb) {
246 UNUSED(path); /* to avoid warnings */ 246 (void)(path); /* to avoid warnings */
247 lua_pushliteral(L, DLMSG); 247 lua_pushliteral(L, DLMSG);
248 return NULL; 248 return NULL;
249} 249}
250 250
251 251
252static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { 252static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
253 UNUSED(lib); UNUSED(sym); /* to avoid warnings */ 253 (void)(lib); (void)(sym); /* to avoid warnings */
254 lua_pushliteral(L, DLMSG); 254 lua_pushliteral(L, DLMSG);
255 return NULL; 255 return NULL;
256} 256}