mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 01:48:00 +02:00
libweston: Silence compiler warning
Silences: `warning: ‘fourcc’ may be used uninitialized [-Wmaybe-uninitialized]` Signed-off-by: Robert Mader <robert.mader@collabora.com>
This commit is contained in:
parent
ab42159bf3
commit
2a2eeb6a33
1 changed files with 2 additions and 0 deletions
|
|
@ -2208,6 +2208,8 @@ gl_renderer_fill_buffer_info(struct weston_compositor *ec,
|
|||
case EGL_TEXTURE_Y_U_V_WL:
|
||||
fourcc = DRM_FORMAT_YUV420;
|
||||
break;
|
||||
default:
|
||||
assert(0 && "not reached");
|
||||
}
|
||||
|
||||
buffer->pixel_format = pixel_format_get_info(fourcc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue