diff options
author | Biswapriyo Nath <nathbappai@gmail.com> | 2020-06-09 23:05:12 +0530 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-06-10 14:33:19 +0200 |
commit | 505eeae402a84dc5208986c5ad611f5e485cbe34 (patch) | |
tree | 0a70dd48a364748ca2cf12bbf31805a508f21ce3 | |
parent | 0356607264b8e1476d98a81667488ba1d6295d23 (diff) | |
download | busybox-505eeae402a84dc5208986c5ad611f5e485cbe34.tar.gz |
Makefile.flags: restrict Wno-constant-logical-operand and Wno-string-plus-int options for clang
these options were added in b4ef2e3467d8e980ccf13c9dd342459c013b455f commit
gcc shows unrecognized command-line option warnings
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | Makefile.flags | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags index bed766b8a..cff935ff5 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -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.. |