[oe-commits] [meta-openembedded] 02/05: kronoset: Disable sign-compare with clang

git at git.openembedded.org git at git.openembedded.org
Mon Mar 9 19:37:29 UTC 2020


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit cfb432a714457d2fd66a02fe7f1340094742ba69
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Mon Mar 9 12:18:21 2020 -0700

    kronoset: Disable sign-compare with clang
    
    clang isn't suppressing warnings from system headers like it should
    Fixes
    ../../git/libknet/transport_udp.c:326:48: error: comparison of integers of different signs: 'unsigned long' and 'int' [-Werror,-Wsign-compare]
                    for (cmsg = CMSG_FIRSTHDR(&msg);cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb b/meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb
index 24aa27a..6bf268d 100644
--- a/meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb
+++ b/meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb
@@ -15,3 +15,9 @@ SRC_URI = "git://github.com/kronosnet/kronosnet;protocol=https;branch=stable1"
 inherit autotools
 
 S = "${WORKDIR}/git"
+
+# libknet/transport_udp.c:326:48: error: comparison of integers of different signs: 'unsigned long' and 'int' [-Werror,-Wsign-compare]
+# for (cmsg = CMSG_FIRSTHDR(&msg);cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
+#                                                             ^~~~~~~~~~~~~~~~~~~~~~~
+CFLAGS_append_toolchain-clang = " -Wno-sign-compare"
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list