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:
committed by
Pekka Paalanen
parent
ab42159bf3
commit
2a2eeb6a33
@@ -2208,6 +2208,8 @@ gl_renderer_fill_buffer_info(struct weston_compositor *ec,
|
|||||||
case EGL_TEXTURE_Y_U_V_WL:
|
case EGL_TEXTURE_Y_U_V_WL:
|
||||||
fourcc = DRM_FORMAT_YUV420;
|
fourcc = DRM_FORMAT_YUV420;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
assert(0 && "not reached");
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer->pixel_format = pixel_format_get_info(fourcc);
|
buffer->pixel_format = pixel_format_get_info(fourcc);
|
||||||
|
|||||||
Reference in New Issue
Block a user