lua-users home
lua-l archive

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



There is a line in Lua sources, which gives warning with gcc '- pedantic' compiler option.

Has anyone found a suitable solution to this?

  lua_CFunction f = (lua_CFunction)dlsym(lib, sym);

>loadlib.c: In function ‘ll_sym’:
>loadlib.c:77: warning: ISO C forbids conversion of object pointer to function pointer type

Did some googling, and:

http://www.webservertalk.com/message217658.html

Which does not really show a clear solution, does it?

-asko