diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-08 09:29:32 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-08 09:29:32 +0200 |
commit | b12af44abd5ef39e915f6b69e33d6a2f8ed36bd7 (patch) | |
tree | 956eac63faa08b8611b52ebbe24319023873e73f /util-src | |
parent | c2e3322fc60e7d69bb0f519797c41cb0898113ee (diff) | |
download | prosody-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.c | 2 |
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); |