mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Add recommended workaround for dlsym void* return cast
This commit is contained in:
parent
1aa0020cce
commit
a959457309
1 changed files with 1 additions and 1 deletions
|
@ -517,7 +517,7 @@ static JSModuleDef *js_module_loader_so(JSContext *ctx,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
init = (JSInitModuleFunc *)dlsym(hd, "js_init_module");
|
*(void **) (&init) = dlsym(hd, "js_init_module");
|
||||||
if (!init) {
|
if (!init) {
|
||||||
JS_ThrowReferenceError(ctx, "could not load module filename '%s': js_init_module not found",
|
JS_ThrowReferenceError(ctx, "could not load module filename '%s': js_init_module not found",
|
||||||
module_name);
|
module_name);
|
||||||
|
|
Loading…
Reference in a new issue