Comparison

util-src/encodings.c @ 9153:26c5a4a14905

encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc 7+.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 08 Aug 2018 09:29:32 +0200
parent 8291:fba1ea67f5c0
child 9973:640a2b8e7806
comparison
equal deleted inserted replaced
9152:bad9e8b43f50 9153:26c5a4a14905
77 char s[3]; 77 char s[3];
78 78
79 switch(--n) { 79 switch(--n) {
80 case 3: 80 case 3:
81 s[2] = (char) tuple; 81 s[2] = (char) tuple;
82 /* Falls through. */
82 83
83 case 2: 84 case 2:
84 s[1] = (char)(tuple >> 8); 85 s[1] = (char)(tuple >> 8);
86 /* Falls through. */
85 87
86 case 1: 88 case 1:
87 s[0] = (char)(tuple >> 16); 89 s[0] = (char)(tuple >> 16);
88 } 90 }
89 91