lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, 20 Feb 2013 09:17:10 +0100
Jose Luis Hidalgo <joseluis.hidalgo@gmail.com> wrote:

> Hi Luiz,
> 
>    When I compile this RC, I get a warning, then an error, about an
> implicit declaration of a function (l_tg) which is in fact, not defined
> anywhere:
> 
> ../deps/lua/src/lobject.c:152:10: warning: implicit declaration of function
> 'l_tg' is invalid in C99 [-Wimplicit-function-declaration]
>   return l_tg(ldexp)(r, e);
> 

Compiling on NetBSD 5.1.2 gets the same error:

gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c lobject.c
lobject.c: In function 'lua_strx2number':
lobject.c:152: warning: implicit declaration of function 'l_tg'
lobject.c:152: error: called object 'l_tg(&ldexp)' is not a function


-- 
Aaron B. <aaron@zadzmo.org>