btrfs-progs: minor fixes for clang warnings
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | btrfs-progs: remove an unnecessary branch to silent the clang warningkernel-shared/ | +10 | 0 replies | |
| 2/5 | btrfs-progs: fix a false alert on an uninitialized variable when BUG_ON() is involved.kernel-shared/ kernel-shared/ | +4 | 0 replies | |
| 3/5 | btrfs-progs: fix fallthrough cases with proper attributescmds/ cmds/ common/ +6 more | +63 | 1 reply | |
| 4/5 | btrfs-progs: move a union with variable sized type to the endimage/ | +5 | 0 replies | |
| 5/5 | btrfs-progs: fix set but not used variablescmds/ image/ kernel-shared/ +1 more | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] btrfs-progs: minor fixes for clang warnings
Recently I'm migrating my default compiler from GCC to clang, mostly to get short comiling time (especially important on my aarch64 machines).
Thus I hit those (mostly false alerts) warnings in btrfs-progs, and come up with this patchset.
Unfortunately there is still libbtrfsutils causing warnings in setuptools, as it's still using the default flags from gcc no matter what.
Qu Wenruo (5):
btrfs-progs: remove an unnecessary branch to silent the clang warning
btrfs-progs: fix a false alert on an uninitialized variable when
BUG_ON() is involved.
btrfs-progs: fix fallthrough cases with proper attributes
btrfs-progs: move a union with variable sized type to the end
btrfs-progs: fix set but not used variables
cmds/reflink.c | 2 +- cmds/scrub.c | 12 +++--- common/format-output.c | 2 +- common/parse-utils.c | 12 +++--- common/units.c | 6 +-- crypto/xxhash.c | 73 +++++++++++++++++++------------------ image/main.c | 15 +++----- kerncompat.h | 8 ++++ kernel-shared/ctree.c | 18 +++++---- kernel-shared/extent-tree.c | 4 +- kernel-shared/print-tree.c | 2 +- kernel-shared/volumes.c | 3 +- kernel-shared/zoned.c | 6 +-- mkfs/main.c | 4 -- 14 files changed, 84 insertions(+), 83 deletions(-)
Signature · 1 line
2.39.1