From 8a70c5492887a8872fbb8b0a8c7ba2e5d14c8e79 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 26 Nov 2022 18:16:14 +0000 Subject: [PATCH] buffer: Add braces to side-step bogus fallthrough warning --- src/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 5c01629..3d8971a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -308,8 +308,9 @@ static bool wv_buffer_pool_match_buffer(struct wv_buffer_pool* pool, switch (pool->type) { case WV_BUFFER_SHM: - if (pool->stride != buffer->stride) + if (pool->stride != buffer->stride) { return false; + } /* fall-through */ #ifdef ENABLE_SCREENCOPY_DMABUF