Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix -Wmissing-declarations for gcc < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Nov 11, 2018
1 parent c0a6cf3 commit 924cb48
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 924cb48

Please sign in to comment.