summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/Makefile
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-12-16 21:15:58 +0100
committerDavid Sterba <dsterba@suse.com>2023-02-13 17:50:33 +0100
commit1ec49744ba83f0429c5c706708610f7821a7b6f4 (patch)
tree0d62a1cdc92b16b3f9fba84ed4d98cb028108bbc /fs/btrfs/Makefile
parentbtrfs: fix uninitialized variable warning in run_one_async_start (diff)
downloadlinux-1ec49744ba83f0429c5c706708610f7821a7b6f4.tar.xz
linux-1ec49744ba83f0429c5c706708610f7821a7b6f4.zip
btrfs: turn on -Wmaybe-uninitialized
We had a recent bug that would have been caught by a newer compiler with -Wmaybe-uninitialized and would have saved us a month of failing tests that I didn't have time to investigate. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/Makefile')
-rw-r--r--fs/btrfs/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/Makefile b/fs/btrfs/Makefile
index 555c962fdad6..460eced3f5bd 100644
--- a/fs/btrfs/Makefile
+++ b/fs/btrfs/Makefile
@@ -11,7 +11,8 @@ condflags := \
$(call cc-option, -Wunused-but-set-variable) \
$(call cc-option, -Wunused-const-variable) \
$(call cc-option, -Wpacked-not-aligned) \
- $(call cc-option, -Wstringop-truncation)
+ $(call cc-option, -Wstringop-truncation) \
+ $(call cc-option, -Wmaybe-uninitialized)
subdir-ccflags-y += $(condflags)
# The following turn off the warnings enabled by -Wextra
subdir-ccflags-y += -Wno-missing-field-initializers