btrfs-progs/crypto
Qu Wenruo 3a1d4aa089 btrfs-progs: fix fallthrough cases with proper attributes
[FALSE ALERT]
Unlike gcc, clang doesn't really understand the comments, thus it's
reportings tons of fall through related errors:

  cmds/reflink.c:124:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
                  case 'r':
                  ^
  cmds/reflink.c:124:3: note: insert '__attribute__((fallthrough));' to silence this warning
                  case 'r':
                  ^
                  __attribute__((fallthrough));
  cmds/reflink.c:124:3: note: insert 'break;' to avoid fall-through
                  case 'r':
                  ^
                  break;

[CAUSE]
Although gcc is fine with /* fallthrough */ comments, clang is not.

[FIX]
So just introduce a fallthrough macro to handle the situation properly,
and use that macro instead.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-02-18 17:44:02 +01:00
..
blake2-impl.h btrfs-progs: add blake2b reference implementation 2019-11-18 19:21:05 +01:00
blake2.h btrfs-progs: add blake2b reference implementation 2019-11-18 19:21:05 +01:00
blake2b-ref.c btrfs-progs: add blake2b reference implementation 2019-11-18 19:21:05 +01:00
crc32c.c btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
crc32c.h btrfs-progs: libbtrfs: remove unneeded BTRFS_FLAT_INCLUDES protections 2021-10-08 20:47:03 +02:00
hash-speedtest.c btrfs-progs: use error helper for messages in non-kernel code 2022-10-11 09:08:07 +02:00
hash-vectest.c btrfs-progs: use error helper for messages in non-kernel code 2022-10-11 09:08:07 +02:00
hash.c btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
hash.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
sha-private.h btrfs-progs: move sha256 from tests to crypto/ 2019-11-18 19:20:02 +01:00
sha.h btrfs-progs: crypto: remove unused sha256 definitions 2021-03-24 22:20:19 +01:00
sha224-256.c btrfs-progs: add sha256 as supported checksumming algorithm 2019-11-18 19:20:40 +01:00
xxhash.c btrfs-progs: fix fallthrough cases with proper attributes 2023-02-18 17:44:02 +01:00
xxhash.h btrfs-progs: lots of typo fixes (codespell) 2020-03-31 18:37:38 +02:00