From f01fa362d7be4525052d4059dd6810d064668469 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Fri, 19 Jul 2024 09:34:05 -0700 Subject: [PATCH] Make fallthroughs explicit encoding.c This allows `-Wimplicit-fallthrough` to pass on LLVM. --- src/encoding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoding.c b/src/encoding.c index 771a440..7d2067f 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -119,7 +119,7 @@ static size_t to_base64(char *dst, size_t dst_len, const void *src, switch (src_len % 3) { case 2: olen++; - /* fall through */ + __attribute__((fallthrough)); case 1: olen += 2; break; @@ -443,7 +443,7 @@ size_t b64len(uint32_t len) { switch (len % 3) { case 2: olen++; - /* fall through */ + __attribute__((fallthrough)); case 1: olen += 2; break;