Browse Source

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

gkostka 9 years ago
parent
commit
7e9fa5accf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/ext4_hash.c

+ 3 - 0
src/ext4_hash.c

@@ -272,6 +272,7 @@ int ext2_htree_hash(const char *name, int len, const uint32_t *hash_seed,
 	switch (hash_version) {
 	case EXT2_HTREE_TEA_UNSIGNED:
 		unsigned_char = 1;
+		/* FALLTHRU */
 	case EXT2_HTREE_TEA:
 		while (len > 0) {
 			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,
 		break;
 	case EXT2_HTREE_LEGACY_UNSIGNED:
 		unsigned_char = 1;
+		/* FALLTHRU */
 	case EXT2_HTREE_LEGACY:
 		major = ext2_legacy_hash(name, len, unsigned_char);
 		break;
 	case EXT2_HTREE_HALF_MD4_UNSIGNED:
 		unsigned_char = 1;
+		/* FALLTHRU */
 	case EXT2_HTREE_HALF_MD4:
 		while (len > 0) {
 			ext2_prep_hashbuf(name, len, data, 32, unsigned_char);