Jacek Caban (@jacek) commented about dlls/winewayland.drv/wayland_output.c:
* Output handling */
+/* Compare a mode rb_tree key with the provided mode rb_entry and return -1 if + * the key compares less than the entry, 0 if the key compares equal to the + * entry, and 1 if the key compares greater than the entry. + * + * The comparison is based on comparing the width, height and refresh in that + * order. */ +static int wayland_output_mode_cmp_rb(const void *key, + const struct rb_entry *entry) +{ + const struct wayland_output_mode *key_mode = + (const struct wayland_output_mode *)key; Explicit cast from void type is not needed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2275#note_26870