diff options
| author | Khem Raj <raj.khem@gmail.com> | 2020-03-09 12:18:21 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-03-09 12:37:28 -0700 |
| commit | cfb432a714457d2fd66a02fe7f1340094742ba69 (patch) | |
| tree | 41d13b80d38c66a8ad99a0d5d413a50da30374f8 | |
| parent | cae26bb8423087819e921b5205dcced59033eb74 (diff) | |
| download | meta-openembedded-cfb432a714457d2fd66a02fe7f1340094742ba69.tar.gz | |
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@gmail.com>
| -rw-r--r-- | meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb b/meta-networking/recipes-extended/kronosnet/kronosnet_1.15.bb index 24aa27a87b..6bf268da9d 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" | |||
| 15 | inherit autotools | 15 | inherit autotools |
| 16 | 16 | ||
| 17 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
| 18 | |||
| 19 | # libknet/transport_udp.c:326:48: error: comparison of integers of different signs: 'unsigned long' and 'int' [-Werror,-Wsign-compare] | ||
| 20 | # for (cmsg = CMSG_FIRSTHDR(&msg);cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) { | ||
| 21 | # ^~~~~~~~~~~~~~~~~~~~~~~ | ||
| 22 | CFLAGS_append_toolchain-clang = " -Wno-sign-compare" | ||
| 23 | |||
