Hi Michael, On 2020-09-06 17:13, Michael Kerrisk (man-pages) wrote:
The only thing with the casts is to avoid the warning, but they don't avoid the possible undefined behaviour (only in non-POSIX systems).Yes. (But, dlopen() is a "UNIX-only" API, and thus non-POSIX doesn't matter here.)
Agreed. The cast is useful in this case. The warning that is completely useless this time. Cheers, Alex.