aboutsummaryrefslogtreecommitdiffstats
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
commit2363ba3749ad5c8d44334c10199589971f7241ef (patch)
tree956eac63faa08b8611b52ebbe24319023873e73f
parentc1be2da977adcd6887bb893c8d60a2886c199e07 (diff)
downloadprosody-2363ba3749ad5c8d44334c10199589971f7241ef.tar.gz
prosody-2363ba3749ad5c8d44334c10199589971f7241ef.zip
encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc 7+.
-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);