aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}