Skip to content

Commit f01fa36

Browse files
committed
Make fallthroughs explicit encoding.c
This allows `-Wimplicit-fallthrough` to pass on LLVM.
1 parent f57e61e commit f01fa36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/encoding.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static size_t to_base64(char *dst, size_t dst_len, const void *src,
119119
switch (src_len % 3) {
120120
case 2:
121121
olen++;
122-
/* fall through */
122+
__attribute__((fallthrough));
123123
case 1:
124124
olen += 2;
125125
break;
@@ -443,7 +443,7 @@ size_t b64len(uint32_t len) {
443443
switch (len % 3) {
444444
case 2:
445445
olen++;
446-
/* fall through */
446+
__attribute__((fallthrough));
447447
case 1:
448448
olen += 2;
449449
break;

0 commit comments

Comments
 (0)