aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-08 09:29:32 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-08 09:29:32 +0200
commitb12af44abd5ef39e915f6b69e33d6a2f8ed36bd7 (patch)
tree956eac63faa08b8611b52ebbe24319023873e73f /util-src
parentc2e3322fc60e7d69bb0f519797c41cb0898113ee (diff)
downloadprosody-b12af44abd5ef39e915f6b69e33d6a2f8ed36bd7.tar.gz
prosody-b12af44abd5ef39e915f6b69e33d6a2f8ed36bd7.zip
encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc?7+.
Diffstat (limited to 'util-src')
-rw-r--r--util-src/encodings.c2
1 files changed, 2 insertions, 0 deletions
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);