]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core/loader: Fix type conflict of GLib function pointers
authorKohei Tokunaga <ktokunaga.mail@gmail.com>
Tue, 22 Apr 2025 05:27:05 +0000 (14:27 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:00:42 +0000 (17:00 +0200)
commit604ac1d87bd650db2c25adcac238577c6aeb5bee
tree23732bff6e1b8d67b19b502c8a193dbde6f9dc0a
parent8cd3b84c8aa8d22c130377ac65e2aac7151a8d27
hw/core/loader: 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: <26dfe9191154ca65dca6ef51ce768ad2a0c30d5f.1745295397.git.ktokunaga.mail@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/core/loader.c