fix for a warning

* use __extension__ for lua_CFunction in loadlib.c
This commit is contained in:
Герхард PICCORO Lenz McKAY 2021-11-02 18:36:07 -04:00
parent 426b5d3149
commit dc8d041819

View File

@ -73,7 +73,7 @@ static void *ll_load (lua_State *L, const char *path) {
static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
lua_CFunction f = (lua_CFunction)dlsym(lib, sym);
lua_CFunction f = __extension__(lua_CFunction)dlsym(lib, sym);
if (f == NULL) lua_pushstring(L, dlerror());
return f;
}