summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8519a6c66702..48de3d02ad07 100644
--- a/Makefile
+++ b/Makefile
@@ -731,15 +731,15 @@ stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG) := -fstack-protector-strong
731KBUILD_CFLAGS += $(stackp-flags-y) 731KBUILD_CFLAGS += $(stackp-flags-y)
732 732
733ifdef CONFIG_CC_IS_CLANG 733ifdef CONFIG_CC_IS_CLANG
734KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) 734KBUILD_CPPFLAGS += -Qunused-arguments
735KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) 735KBUILD_CFLAGS += -Wno-format-invalid-specifier
736KBUILD_CFLAGS += $(call cc-disable-warning, gnu) 736KBUILD_CFLAGS += -Wno-gnu
737# Quiet clang warning: comparison of unsigned expression < 0 is always false 737# Quiet clang warning: comparison of unsigned expression < 0 is always false
738KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) 738KBUILD_CFLAGS += -Wno-tautological-compare
739# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the 739# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the
740# source of a reference will be _MergedGlobals and not on of the whitelisted names. 740# source of a reference will be _MergedGlobals and not on of the whitelisted names.
741# See modpost pattern 2 741# See modpost pattern 2
742KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) 742KBUILD_CFLAGS += -mno-global-merge
743else 743else
744 744
745# These warnings generated too much noise in a regular build. 745# These warnings generated too much noise in a regular build.