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
272 switch (hash_version) {272 switch (hash_version) {
273 case EXT2_HTREE_TEA_UNSIGNED:273 case EXT2_HTREE_TEA_UNSIGNED:
274 unsigned_char = 1;274 unsigned_char = 1;
275 /* FALLTHRU */
275 case EXT2_HTREE_TEA:276 case EXT2_HTREE_TEA:
276 while (len > 0) {277 while (len > 0) {
277 ext2_prep_hashbuf(name, len, data, 16, unsigned_char);278 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
284 break;285 break;
285 case EXT2_HTREE_LEGACY_UNSIGNED:286 case EXT2_HTREE_LEGACY_UNSIGNED:
286 unsigned_char = 1;287 unsigned_char = 1;
288 /* FALLTHRU */
287 case EXT2_HTREE_LEGACY:289 case EXT2_HTREE_LEGACY:
288 major = ext2_legacy_hash(name, len, unsigned_char);290 major = ext2_legacy_hash(name, len, unsigned_char);
289 break;291 break;
290 case EXT2_HTREE_HALF_MD4_UNSIGNED:292 case EXT2_HTREE_HALF_MD4_UNSIGNED:
291 unsigned_char = 1;293 unsigned_char = 1;
294 /* FALLTHRU */
292 case EXT2_HTREE_HALF_MD4:295 case EXT2_HTREE_HALF_MD4:
293 while (len > 0) {296 while (len > 0) {
294 ext2_prep_hashbuf(name, len, data, 32, unsigned_char);297 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