From c5530af50821fa8a55bca624ee8f1e5c9d426e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Sat, 7 Mar 2020 12:00:11 +0100 Subject: [PATCH] Silenced warnings about fallthrough situations in libntfs-3g Insert a comment when fallthrough situations are desired in switch cases. --- libntfs-3g/attrib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 30a8e9cf..7d5d5374 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -6902,7 +6902,9 @@ s64 ntfs_attr_get_free_bits(ntfs_attr *na) } switch (br % 4) { case 3: nr_free += lut[*(buf + br - 3)]; + /* FALLTHRU */ case 2: nr_free += lut[*(buf + br - 2)]; + /* FALLTHRU */ case 1: nr_free += lut[*(buf + br - 1)]; } }