aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:42:49 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:42:49 -0200
commite21b26a964774e29f24e5f6ae97808fdb5bce9d5 (patch)
treef512c9e2843fdc12c5bba13e17346633893b3dc3 /lmem.c
parent0f388193b3d00571126abadfd4dc9bf02ea17b24 (diff)
downloadlua-e21b26a964774e29f24e5f6ae97808fdb5bce9d5.tar.gz
lua-e21b26a964774e29f24e5f6ae97808fdb5bce9d5.tar.bz2
lua-e21b26a964774e29f24e5f6ae97808fdb5bce9d5.zip
avoid 'return' "to avoid warnings"
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lmem.c b/lmem.c
index 1ee7f23d..2f5cddd5 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.81 2010/12/20 19:40:07 roberto Exp roberto $ 2** $Id: lmem.c,v 1.82 2011/09/20 19:25:23 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -63,9 +63,8 @@ void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems,
63} 63}
64 64
65 65
66void *luaM_toobig (lua_State *L) { 66l_noret luaM_toobig (lua_State *L) {
67 luaG_runerror(L, "memory allocation error: block too big"); 67 luaG_runerror(L, "memory allocation error: block too big");
68 return NULL; /* to avoid warnings */
69} 68}
70 69
71 70