From e21b26a964774e29f24e5f6ae97808fdb5bce9d5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 30 Nov 2011 10:42:49 -0200 Subject: avoid 'return' "to avoid warnings" --- lmem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lmem.h') diff --git a/lmem.h b/lmem.h index 710a4904..276bb32a 100644 --- a/lmem.h +++ b/lmem.h @@ -1,5 +1,5 @@ /* -** $Id: lmem.h,v 1.35 2009/12/16 16:42:58 roberto Exp roberto $ +** $Id: lmem.h,v 1.36 2010/04/08 17:16:46 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -17,7 +17,7 @@ #define luaM_reallocv(L,b,on,n,e) \ ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ - luaM_toobig(L)) + (luaM_toobig(L), NULL)) #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) @@ -37,7 +37,7 @@ #define luaM_reallocvector(L, v,oldn,n,t) \ ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) -LUAI_FUNC void *luaM_toobig (lua_State *L); +LUAI_FUNC l_noret luaM_toobig (lua_State *L); /* not to be called directly */ LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, -- cgit v1.2.3-55-g6feb