[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] Makefile.flags: restrict Wno-constant-logical-operand and Wno-string-plus-int options for cl
From: Biswapriyo Nath <nathbappai () gmail ! com>
Date: 2020-06-09 17:51:04
Message-ID: CALK-3mKskgYtDfUPkQtZ8EJDGh7iQXcgVQr9F4MaR5S4ZZxwjQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_default" \
style="font-family:arial,sans-serif;font-size:large"><br></div></div>
["0001-Makefile.flags-restrict-Wno-constant-logical-operand-.patch" (text/plain)]
From 91ae0376f2044bedc062ad1fc30b57528b5c454f Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbappai@gmail.com>
Date: Tue, 9 Jun 2020 23:05:12 +0530
Subject: [PATCH] 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>
---
Makefile.flags | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile.flags b/Makefile.flags
index bed766b..cff935f 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..
--
2.27.0
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic