error: 'g_mem_chunk_alloc0' is deprecated
error: 'g_mem_chunk_free' is deprecated
error: 'g_mem_chunk_alloc' is deprecated
The g_mem_chunk_*()
APIs were deprecated in 2005 (15 years ago), and all mention of them was removed from the documentation in 2011 (9 years ago).
I don’t think it’s reasonable to keep documentation for deprecated functions around for 15 years (it would cause more confusion than it would solve).
The GSlice
API is the replacement for GMemChunk
. In particular:
* g_mem_chunk_alloc0()
→ g_slice_alloc0()
* g_mem_chunk_free()
→ g_slice_free()
* g_mem_chunk_alloc()
→ g_slice_alloc()
These won’t be 1:1 replacements for the deprecated APIs, as otherwise the developers at the time could have avoided deprecating those APIs. You will likely have to rework your code.
error: 'g_atexit' is deprecated
The documentation for g_atexit()
explains that there is no replacement for it:
The behaviour of atexit() in the context of dynamically loaded modules is not formally specified and varies wildly.