Merge pull request #935 from admshao/implicit-fallthrough

Suppress -Wimplicit-fallthrough in GCC 7
This commit is contained in:
Jim
2017-05-30 01:23:27 -07:00
committed by GitHub
5 changed files with 8 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
result = (fragment & 0x0fc) >> 2;
*codechar++ = base64_encode_value(result);
result = (fragment & 0x003) << 4;
/* Falls through. */
case step_B:
if (plainchar == plaintextend)
{
@@ -59,6 +60,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
result |= (fragment & 0x0f0) >> 4;
*codechar++ = base64_encode_value(result);
result = (fragment & 0x00f) << 2;
/* Falls through. */
case step_C:
if (plainchar == plaintextend)
{