3a1d4aa089
[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> |
||
---|---|---|
.. | ||
blake2-impl.h | ||
blake2.h | ||
blake2b-ref.c | ||
crc32c.c | ||
crc32c.h | ||
hash-speedtest.c | ||
hash-vectest.c | ||
hash.c | ||
hash.h | ||
sha-private.h | ||
sha.h | ||
sha224-256.c | ||
xxhash.c | ||
xxhash.h |