Skip to content

Commit 924cb48

Browse files
committed
Fix -Wmissing-declarations for gcc < 7
See https://stackoverflow.com/a/48702576/233633 Fixes #2690
1 parent c0a6cf3 commit 924cb48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cencode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
4747
*codechar++ = base64_encode_value(result);
4848
result = (fragment & 0x003) << 4;
4949
#ifndef _MSC_VER
50-
__attribute__ ((fallthrough));
50+
/* fall through */
5151
#endif
5252
case step_B:
5353
if (plainchar == plaintextend)
@@ -61,7 +61,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
6161
*codechar++ = base64_encode_value(result);
6262
result = (fragment & 0x00f) << 2;
6363
#ifndef _MSC_VER
64-
__attribute__ ((fallthrough));
64+
/* fall through */
6565
#endif
6666
case step_C:
6767
if (plainchar == plaintextend)

0 commit comments

Comments
 (0)