Makefile (6f84981772535e670e4e2df051a672af229b6694) Makefile (1ec49744ba83f0429c5c706708610f7821a7b6f4)
1# SPDX-License-Identifier: GPL-2.0
2
3# Subset of W=1 warnings
4subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
5subdir-ccflags-y += -Wmissing-declarations
6subdir-ccflags-y += -Wmissing-format-attribute
7subdir-ccflags-y += -Wmissing-prototypes
8subdir-ccflags-y += -Wold-style-definition
9subdir-ccflags-y += -Wmissing-include-dirs
10condflags := \
11 $(call cc-option, -Wunused-but-set-variable) \
12 $(call cc-option, -Wunused-const-variable) \
13 $(call cc-option, -Wpacked-not-aligned) \
1# SPDX-License-Identifier: GPL-2.0
2
3# Subset of W=1 warnings
4subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
5subdir-ccflags-y += -Wmissing-declarations
6subdir-ccflags-y += -Wmissing-format-attribute
7subdir-ccflags-y += -Wmissing-prototypes
8subdir-ccflags-y += -Wold-style-definition
9subdir-ccflags-y += -Wmissing-include-dirs
10condflags := \
11 $(call cc-option, -Wunused-but-set-variable) \
12 $(call cc-option, -Wunused-const-variable) \
13 $(call cc-option, -Wpacked-not-aligned) \
14 $(call cc-option, -Wstringop-truncation)
14 $(call cc-option, -Wstringop-truncation) \
15 $(call cc-option, -Wmaybe-uninitialized)
15subdir-ccflags-y += $(condflags)
16# The following turn off the warnings enabled by -Wextra
17subdir-ccflags-y += -Wno-missing-field-initializers
18subdir-ccflags-y += -Wno-sign-compare
19subdir-ccflags-y += -Wno-type-limits
20subdir-ccflags-y += -Wno-shift-negative-value
21
22obj-$(CONFIG_BTRFS_FS) := btrfs.o

--- 23 unchanged lines hidden ---
16subdir-ccflags-y += $(condflags)
17# The following turn off the warnings enabled by -Wextra
18subdir-ccflags-y += -Wno-missing-field-initializers
19subdir-ccflags-y += -Wno-sign-compare
20subdir-ccflags-y += -Wno-type-limits
21subdir-ccflags-y += -Wno-shift-negative-value
22
23obj-$(CONFIG_BTRFS_FS) := btrfs.o

--- 23 unchanged lines hidden ---