mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: fix -Wmissing-field-initializers warning in comp_window_wayland.c
Newer wayland protocols have a new filed in xdg_toplevel_listener which is not initialized: ----------------------------------------------------------------------- [215/315] Building C object src/xrt/compositor/CMakeFiles/comp_main.dir/main/comp_window_wayland.c.o .../src/xrt/compositor/main/comp_window_wayland.c:182:1: warning: missing field 'configure_bounds' initializer [-Wmissing-field-initializers] }; ^ 1 warning generated. ----------------------------------------------------------------------- Detect the version when this is needed and initialize the field to silence the warning.
This commit is contained in:
parent
e8c9d8f575
commit
beda8f35b2
|
@ -179,6 +179,9 @@ _xdg_toplevel_close_cb(void *data, struct xdg_toplevel *toplevel)
|
|||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||
_xdg_toplevel_configure_cb,
|
||||
_xdg_toplevel_close_cb,
|
||||
#if XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION >= 4
|
||||
NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue