Skip to content

Commit

Permalink
Fix -Wmissing-declarations for gcc < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Jul 26, 2018
1 parent 38f4c36 commit 0fa69a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
*codechar++ = base64_encode_value(result);
result = (fragment & 0x003) << 4;
#ifndef _MSC_VER
__attribute__ ((fallthrough));
/* fall through */
#endif
case step_B:
if (plainchar == plaintextend)
Expand All @@ -61,7 +61,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
*codechar++ = base64_encode_value(result);
result = (fragment & 0x00f) << 2;
#ifndef _MSC_VER
__attribute__ ((fallthrough));
/* fall through */
#endif
case step_C:
if (plainchar == plaintextend)
Expand Down

0 comments on commit 0fa69a5

Please sign in to comment.