mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 16:59:25 +00:00
Without this change gcc says:
x11/res.cpp:31:1: error: narrowing conversion of ‘(((unsigned int)_alt_image.<anonymous struct>::width) * 4u)’ from ‘unsigned int’ to ‘int’ inside { } is ill-formed in C++11 [-Werror=narrowing]
x11/res.cpp:61:1: error: narrowing conversion of ‘_red_icon.<anonymous struct>::width’ from ‘const uint32_t {aka const unsigned int}’ to ‘int’ inside { } is ill-formed in C++11 [-Werror=narrowing]
x11/res.cpp:61:1: error: narrowing conversion of ‘_red_icon.<anonymous struct>::height’ from ‘const uint32_t {aka const unsigned int}’ to ‘int’ inside { } is ill-formed in C++11 [-Werror=narrowing]
cc1plus: all warnings being treated as errors
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
||
|---|---|---|
| .. | ||
| images | ||
| .gitignore | ||
| atomic_count.h | ||
| event_sources_p.cpp | ||
| event_sources_p.h | ||
| main.cpp | ||
| named_pipe.cpp | ||
| named_pipe.h | ||
| pixels_source_p.h | ||
| pixels_source.cpp | ||
| platform_utils.cpp | ||
| platform_utils.h | ||
| platform.cpp | ||
| playback.cpp | ||
| playback.h | ||
| record.cpp | ||
| record.h | ||
| red_drawable.cpp | ||
| red_pixmap_gl.cpp | ||
| red_pixmap_sw.cpp | ||
| red_pixmap.cpp | ||
| red_window_p.h | ||
| red_window.cpp | ||
| res.cpp | ||
| res.h | ||
| resource.h | ||
| x_icon.cpp | ||
| x_icon.h | ||
| x_platform.h | ||