mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
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>
This commit is contained in:
parent
a6ca692ec2
commit
1ec49744ba
@ -11,7 +11,8 @@ condflags := \
|
|||||||
$(call cc-option, -Wunused-but-set-variable) \
|
$(call cc-option, -Wunused-but-set-variable) \
|
||||||
$(call cc-option, -Wunused-const-variable) \
|
$(call cc-option, -Wunused-const-variable) \
|
||||||
$(call cc-option, -Wpacked-not-aligned) \
|
$(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)
|
subdir-ccflags-y += $(condflags)
|
||||||
# The following turn off the warnings enabled by -Wextra
|
# The following turn off the warnings enabled by -Wextra
|
||||||
subdir-ccflags-y += -Wno-missing-field-initializers
|
subdir-ccflags-y += -Wno-missing-field-initializers
|
||||||
|
Loading…
Reference in New Issue
Block a user