Standard `free()` does not have const argument
alexreinking opened this issue · 2 comments
alexreinking commented
The typedef for lh_freefun
currently has an argument type of const void *
, which is non-conforming with the C standard library. Per the C11 standard, section 7.22.3.3, free
is defined to have the following signature:
void free(void *ptr);
Can this typedef be updated in libhandler? It currently generates warning C4028
in MSVC when trying to pass the standard free
function.
alexreinking commented
Awesome, @daanx ! Thanks!