From 778f47fcbbe9c944928be017b00ea105ebc03db6 Mon Sep 17 00:00:00 2001 From: Tim Rakowski Date: Sat, 12 Aug 2017 23:49:49 +0200 Subject: [PATCH] Fixed g++ 7 fall through warnings --- utilities/xmlrpcpp/libb64/src/cdecode.c | 3 +++ utilities/xmlrpcpp/libb64/src/cencode.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/utilities/xmlrpcpp/libb64/src/cdecode.c b/utilities/xmlrpcpp/libb64/src/cdecode.c index a6c0a423b6..a9441e22a7 100644 --- a/utilities/xmlrpcpp/libb64/src/cdecode.c +++ b/utilities/xmlrpcpp/libb64/src/cdecode.c @@ -45,6 +45,7 @@ int base64_decode_block(const char* code_in, const int length_in, char* plaintex fragment = (char)base64_decode_value(*codechar++); } while (fragment < 0); *plainchar = (fragment & 0x03f) << 2; + //lint -fallthrough case step_b: do { if (codechar == code_in+length_in) @@ -57,6 +58,7 @@ int base64_decode_block(const char* code_in, const int length_in, char* plaintex } while (fragment < 0); *plainchar++ |= (fragment & 0x030) >> 4; *plainchar = (fragment & 0x00f) << 4; + //lint -fallthrough case step_c: do { if (codechar == code_in+length_in) @@ -69,6 +71,7 @@ int base64_decode_block(const char* code_in, const int length_in, char* plaintex } while (fragment < 0); *plainchar++ |= (fragment & 0x03c) >> 2; *plainchar = (fragment & 0x003) << 6; + //lint -fallthrough case step_d: do { if (codechar == code_in+length_in) diff --git a/utilities/xmlrpcpp/libb64/src/cencode.c b/utilities/xmlrpcpp/libb64/src/cencode.c index 03ba5b6866..3d5430e135 100644 --- a/utilities/xmlrpcpp/libb64/src/cencode.c +++ b/utilities/xmlrpcpp/libb64/src/cencode.c @@ -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; + //lint -fallthrough 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; + //lint -fallthrough case step_C: if (plainchar == plaintextend) {