← Commit list

505eeae40

Biswapriyo Nath
Biswapriyo Nath
2020-06-10
SUCCESS Duration: 151s

Subject

Makefile.flags: restrict Wno-constant-logical-operand and Wno-string-plus-int options for clang

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

Makefile.flags+2 -0
@@ -77,7 +77,9 @@ CFLAGS += $(call cc-option,-fno-asynchronous-unwind-tables,)
CFLAGS += $(call cc-option,-fno-builtin-printf,)
# clang-9 does not like "str" + N and "if (CONFIG_ITEM && cond)" constructs
+ifeq ($(CC),clang)
CFLAGS += $(call cc-option,-Wno-string-plus-int -Wno-constant-logical-operand)
+endif
# FIXME: These warnings are at least partially to be concerned about and should
# be fixed..