History

Suppress gcc 7.xx warnings (fall through in switch statement)

gkostka committed 9 years ago

Commit 7e9fa5a1 parent f371bc81 file · +3 −0Browse files

Unified · Split

src/ext4_hash.c+3−0
@@ -272,6 +272,7 @@ int ext2_htree_hash(const char *name, int len, const uint32_t *hash_seed, · 271 unmodified lines
272272 switch (hash_version) {
273273 case EXT2_HTREE_TEA_UNSIGNED:
274274 unsigned_char = 1;
275+ /* FALLTHRU */
275276 case EXT2_HTREE_TEA:
276277 while (len > 0) {
277278 ext2_prep_hashbuf(name, len, data, 16, unsigned_char);
@@ -284,11 +285,13 @@ int ext2_htree_hash(const char *name, int len, const uint32_t *hash_seed, · 6 unmodified lines
284285 break;
285286 case EXT2_HTREE_LEGACY_UNSIGNED:
286287 unsigned_char = 1;
288+ /* FALLTHRU */
287289 case EXT2_HTREE_LEGACY:
288290 major = ext2_legacy_hash(name, len, unsigned_char);
289291 break;
290292 case EXT2_HTREE_HALF_MD4_UNSIGNED:
291293 unsigned_char = 1;
294+ /* FALLTHRU */
292295 case EXT2_HTREE_HALF_MD4:
293296 while (len > 0) {
294297 ext2_prep_hashbuf(name, len, data, 32, unsigned_char);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t