Makefile.extrawarn (1136fa0c07de570dc17858745af8be169d1440ba) Makefile.extrawarn (1344794a59db2bd44b4919d2d75300fd3b1c2cd7)
1# SPDX-License-Identifier: GPL-2.0
2# ==========================================================================
3# make W=... settings
4#
5# There are three warning groups enabled by W=1, W=2, W=3.
6# They are independent, and can be combined like W=12 or W=123.
7# ==========================================================================
8

--- 22 unchanged lines hidden (view full) ---

31KBUILD_CFLAGS += $(call cc-option, -Wunused-but-set-variable)
32KBUILD_CFLAGS += $(call cc-option, -Wunused-const-variable)
33KBUILD_CFLAGS += $(call cc-option, -Wpacked-not-aligned)
34KBUILD_CFLAGS += $(call cc-option, -Wstringop-truncation)
35# The following turn off the warnings enabled by -Wextra
36KBUILD_CFLAGS += -Wno-missing-field-initializers
37KBUILD_CFLAGS += -Wno-sign-compare
38KBUILD_CFLAGS += -Wno-type-limits
1# SPDX-License-Identifier: GPL-2.0
2# ==========================================================================
3# make W=... settings
4#
5# There are three warning groups enabled by W=1, W=2, W=3.
6# They are independent, and can be combined like W=12 or W=123.
7# ==========================================================================
8

--- 22 unchanged lines hidden (view full) ---

31KBUILD_CFLAGS += $(call cc-option, -Wunused-but-set-variable)
32KBUILD_CFLAGS += $(call cc-option, -Wunused-const-variable)
33KBUILD_CFLAGS += $(call cc-option, -Wpacked-not-aligned)
34KBUILD_CFLAGS += $(call cc-option, -Wstringop-truncation)
35# The following turn off the warnings enabled by -Wextra
36KBUILD_CFLAGS += -Wno-missing-field-initializers
37KBUILD_CFLAGS += -Wno-sign-compare
38KBUILD_CFLAGS += -Wno-type-limits
39KBUILD_CFLAGS += -Wno-shift-negative-value
39
40KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN1
41
42else
43
44# Some diagnostics enabled by default are noisy.
45# Suppress them by using -Wno... except for W=1.
46

--- 49 unchanged lines hidden ---
40
41KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN1
42
43else
44
45# Some diagnostics enabled by default are noisy.
46# Suppress them by using -Wno... except for W=1.
47

--- 49 unchanged lines hidden ---