Makefile (1136fa0c07de570dc17858745af8be169d1440ba) Makefile (1344794a59db2bd44b4919d2d75300fd3b1c2cd7)
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)
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
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)
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
20
21obj-$(CONFIG_BTRFS_FS) := btrfs.o
22
23btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
24 file-item.o inode-item.o disk-io.o \
25 transaction.o inode.o file.o tree-defrag.o \
26 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
27 extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \

--- 17 unchanged lines hidden ---
21
22obj-$(CONFIG_BTRFS_FS) := btrfs.o
23
24btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
25 file-item.o inode-item.o disk-io.o \
26 transaction.o inode.o file.o tree-defrag.o \
27 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
28 extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \

--- 17 unchanged lines hidden ---