On 10 June 2020 14:33:19 CEST, Denys Vlasenko <vda.li...@googlemail.com> wrote: >commit: >https://git.busybox.net/busybox/commit/?id=505eeae402a84dc5208986c5ad611f5e485cbe34 >branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master > >these options were added in b4ef2e3467d8e980ccf13c9dd342459c013b455f >commit >gcc shows unrecognized command-line option warnings > >Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com> >Signed-off-by: Denys Vlasenko <vda.li...@googlemail.com> >--- > Makefile.flags | 2 ++ > 1 file changed, 2 insertions(+) > >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
clang-6.0 clang-7 clang-10 etc. findstring clang,$(CC) ? thanks, _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox