From b12af44abd5ef39e915f6b69e33d6a2f8ed36bd7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 8 Aug 2018 09:29:32 +0200 Subject: encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc?7+. --- util-src/encodings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util-src/encodings.c b/util-src/encodings.c index d85c7cf6..f7e8131f 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -79,9 +79,11 @@ static void base64_decode(luaL_Buffer *b, int c1, int c2, int c3, int c4, int n) switch(--n) { case 3: s[2] = (char) tuple; + /* Falls through. */ case 2: s[1] = (char)(tuple >> 8); + /* Falls through. */ case 1: s[0] = (char)(tuple >> 16); -- cgit v1.2.3