]> git.ipfire.org Git - thirdparty/qemu.git/commit
contrib/plugins: Fix type conflict of GLib function pointers
authorKohei Tokunaga <ktokunaga.mail@gmail.com>
Tue, 22 Apr 2025 05:27:10 +0000 (14:27 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:09:58 +0000 (17:09 +0200)
commit01499add2ae6529589002860e1880ff193a6578a
tree156bb301bdec334a1714aea04f78e81f760b35ee
parent141af1b31b10764dcc03a5854ff767b692545e7c
contrib/plugins: Fix type conflict of GLib function pointers

On Emscripten, function pointer casts can result in runtime failures due to
strict function signature checks. This affects the use of g_list_sort and
g_slist_sort, which internally perform function pointer casts that are not
supported by Emscripten. To avoid these issues, g_list_sort_with_data and
g_slist_sort_with_data should be used instead, as they do not rely on
function pointer casting.

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <0fcddfca16ca8da2bdaa7b2c114476f5b73d032b.1745295397.git.ktokunaga.mail@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
contrib/plugins/cache.c
contrib/plugins/cflow.c
contrib/plugins/hotblocks.c
contrib/plugins/hotpages.c
contrib/plugins/howvec.c
contrib/plugins/hwprofile.c
tests/tcg/plugins/mem.c
tests/tcg/plugins/syscall.c