summaryrefslogtreecommitdiffstats
path: root/kernel/scripts/Makefile.extrawarn
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/scripts/Makefile.extrawarn')
-rw-r--r--kernel/scripts/Makefile.extrawarn2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/scripts/Makefile.extrawarn b/kernel/scripts/Makefile.extrawarn
index f734033af..4efedcbe4 100644
--- a/kernel/scripts/Makefile.extrawarn
+++ b/kernel/scripts/Makefile.extrawarn
@@ -56,7 +56,7 @@ endif
KBUILD_CFLAGS += $(warning)
else
-ifeq ($(COMPILER),clang)
+ifeq ($(cc-name),clang)
KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-value)
KBUILD_CFLAGS += $(call cc-disable-warning, format)