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

1 comment on commit 0fa69a5

@bep
Copy link
Contributor

@bep bep commented on 0fa69a5 Sep 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xzyfer would it be possible to make this into a minor release anytime soon? Would love to get rid of this warning in Hugo.

Please sign in to comment.