diff mbox series

[oe,meta-oe,09/10] libkcapi: Disable Wsign-compare warning with clang/musl

Message ID 20180910050629.16170-9-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-xfce,01/10] xfce4-vala: Build for vala 0.42 to match oe-core | expand

Commit Message

Khem Raj Sept. 10, 2018, 5:06 a.m. UTC
clang 7.0 is grumpy and complains about cmsg structures and macros from
sys/socket.h

kcapi-kernel-if.c:25:11: error: comparison of integers of different signs: 'unsigned long' and 'long' [-Werror,-Wsign-compare] header = CMSG_NXTHDR(&msg, header);

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.18.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
index addd169a8d..a93ddc8237 100644
--- a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
+++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
@@ -24,3 +24,5 @@  do_install_append() {
     # when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
     rmdir --ignore-fail-on-non-empty ${D}${bindir}
 }
+
+CPPFLAGS_append_libc-musl_toolchain-clang = " -Wno-error=sign-compare"