mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-14 22:28:07 +02:00
Fixes the following C++ narrow conversion:
/include/libweston-14/libweston/matrix.h: In function ‘weston_coord
weston_coord_truncate(weston_coord)’:
/include/libweston-14/libweston/matrix.h:212:39: error: narrowing
conversion of ‘(int)in.weston_coord::x’ from ‘int’ to ‘double’
[-Werror=narrowing] 212 | return (struct weston_coord){
(int)in.x, (int)in.y };
| ^~~~~~~~~
/home/mvlad/install-new/include/libweston-14/libweston/matrix.h:212:50:
error: narrowing conversion of ‘(int)in.weston_coord::y’ from ‘int’ to
‘double’ [-Werror=narrowing] 212 | return (struct weston_coord){
(int)in.x, (int)in.y };
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
|
||
|---|---|---|
| .. | ||
| backend-drm.h | ||
| backend-headless.h | ||
| backend-pipewire.h | ||
| backend-rdp.h | ||
| backend-vnc.h | ||
| backend-wayland.h | ||
| backend-x11.h | ||
| config-parser.h | ||
| desktop.h | ||
| libweston.h | ||
| matrix.h | ||
| meson.build | ||
| pipewire-plugin.h | ||
| plugin-registry.h | ||
| remoting-plugin.h | ||
| shell-utils.h | ||
| version.h.in | ||
| weston-log.h | ||
| windowed-output-api.h | ||
| xwayland-api.h | ||
| zalloc.h | ||