prevent -Wimplicit-fallthrough= warning with gcc 8.2.1

This commit is contained in:
leoTlr 2019-04-04 00:27:39 +02:00
parent a3a0d9c0ec
commit 4234eea1bf

View file

@ -229,16 +229,16 @@ inline std::string base64_decode(const char* in, size_t len)
const auto fourth = dmap.at(in[3]); const auto fourth = dmap.at(in[3]);
result[i + 2] = (third << 6) | fourth; result[i + 2] = (third << 6) | fourth;
bytes_wr++; bytes_wr++;
//FALLTHROUGH
} }
//FALLTHROUGH
case 3: case 3:
{ {
const auto second = dmap.at(in[1]); const auto second = dmap.at(in[1]);
const auto third = dmap.at(in[2]); const auto third = dmap.at(in[2]);
result[i + 1] = (second << 4) | (third >> 2); result[i + 1] = (second << 4) | (third >> 2);
bytes_wr++; bytes_wr++;
//FALLTHROUGH
} }
//FALLTHROUGH
case 2: case 2:
{ {
const auto first = dmap.at(in[0]); const auto first = dmap.at(in[0]);