shithub: lwext4

Download patch

ref: 7e9fa5accf413deb040daca7cfd7844edb5cf58b
parent: f371bc8b84dfe7431b4513b1fefb76e3f9a1fdc5
author: gkostka <kostka.grzegorz@gmail.com>
date: Tue Jul 11 13:55:08 EDT 2017

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

--- a/src/ext4_hash.c
+++ b/src/ext4_hash.c
@@ -272,6 +272,7 @@
 	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 @@
 		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);