buffer: Add braces to side-step bogus fallthrough warning

pull/195/head
Andri Yngvason 2022-11-26 18:16:14 +00:00
parent 800a460444
commit 8a70c54928
1 changed files with 2 additions and 1 deletions

View File

@ -308,8 +308,9 @@ static bool wv_buffer_pool_match_buffer(struct wv_buffer_pool* pool,
switch (pool->type) { switch (pool->type) {
case WV_BUFFER_SHM: case WV_BUFFER_SHM:
if (pool->stride != buffer->stride) if (pool->stride != buffer->stride) {
return false; return false;
}
/* fall-through */ /* fall-through */
#ifdef ENABLE_SCREENCOPY_DMABUF #ifdef ENABLE_SCREENCOPY_DMABUF