diff mbox series

[oe,meta-oe,1/2] open-vm-tools: Add -Wno-address-of-packed-member for with clang

Message ID 20170902220559.9784-1-raj.khem@gmail.com
State Accepted
Commit f96dffa6e08bb772df2f5d4a88ffaaa4d4f4ddf2
Headers show
Series [oe,meta-oe,1/2] open-vm-tools: Add -Wno-address-of-packed-member for with clang | expand

Commit Message

Khem Raj Sept. 2, 2017, 10:05 p.m. UTC
This option ignores a warning as following
 error: taking address of packed member 'actualSize' of class or structure 'HgfsReplyReadV3' may result in an unaligned pointer value

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

---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
2.14.1

-- 
_______________________________________________
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-support/open-vm-tools/open-vm-tools_10.1.5.bb b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index f7746c8e3..dc8faa4ea 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -66,6 +66,7 @@  PACKAGECONFIG[x11] = ",${NO_X11_FLAGS},${X11_DEPENDS}"
 # fuse gets implicitly detected; there is no --without-fuse option.
 PACKAGECONFIG[fuse] = ",,fuse"
 
+CFLAGS_append_toolchain-clang = " -Wno-address-of-packed-member"
 FILES_${PN} += "\
     ${libdir}/open-vm-tools/plugins/vmsvc/lib*.so \
     ${libdir}/open-vm-tools/plugins/common/lib*.so \