summaryrefslogtreecommitdiff
path: root/scripts/Makefile.warn
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.warn')
-rw-r--r--scripts/Makefile.warn1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile.warn b/scripts/Makefile.warn
index 556fa249ca07..03b677bdbb0a 100644
--- a/scripts/Makefile.warn
+++ b/scripts/Makefile.warn
@@ -167,6 +167,7 @@ endif
ifdef CONFIG_CC_IS_GCC
KBUILD_CFLAGS += -Wno-maybe-uninitialized
+KBUILD_CFLAGS += $(CONFIG_CC_OPT_WNO_CONSTANT_LOGICAL_OPERAND)
endif
endif