Skip to content

Commit

Permalink
Make fallthroughs explicit encoding.c
Browse files Browse the repository at this point in the history
This allows `-Wimplicit-fallthrough` to pass on LLVM.
  • Loading branch information
r-barnes committed Aug 6, 2024
1 parent f57e61e commit f01fa36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f01fa36

Please sign in to comment.