avoid warning

This commit is contained in:
Paolo Marrone 2024-06-20 18:03:55 +02:00
parent 0421f5dec9
commit ef33070526

View File

@ -2176,7 +2176,7 @@ char ModuleEntry(void *handle) {
char *file; char *file;
if (refs == 0) { if (refs == 0) {
Dl_info info; Dl_info info;
union { void* d; char (*f)(); } v; union { void* d; char (*f)(void); } v;
v.f = vstExit; v.f = vstExit;
if (dladdr((void*) v.d, &info) == 0) if (dladdr((void*) v.d, &info) == 0)
return 0; return 0;