From 4234eea1bf9e7929a508aea2839f5f7fbb579bc1 Mon Sep 17 00:00:00 2001 From: leoTlr Date: Thu, 4 Apr 2019 00:27:39 +0200 Subject: [PATCH] prevent -Wimplicit-fallthrough= warning with gcc 8.2.1 --- include/jwt/base64.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/jwt/base64.hpp b/include/jwt/base64.hpp index 226c1f0..4cb28d7 100644 --- a/include/jwt/base64.hpp +++ b/include/jwt/base64.hpp @@ -229,16 +229,16 @@ inline std::string base64_decode(const char* in, size_t len) const auto fourth = dmap.at(in[3]); result[i + 2] = (third << 6) | fourth; bytes_wr++; - //FALLTHROUGH } + //FALLTHROUGH case 3: { const auto second = dmap.at(in[1]); const auto third = dmap.at(in[2]); result[i + 1] = (second << 4) | (third >> 2); bytes_wr++; - //FALLTHROUGH } + //FALLTHROUGH case 2: { const auto first = dmap.at(in[0]);